:root {
    --page-bg-1: #f4f8fb;
    --page-bg-2: #e9f2f5;
    --sidebar-bg: #0f2a3d;
    --sidebar-text: #d9ecf2;
    --sidebar-active: #1f7a8c;
    --main-card: #ffffff;
}

body {
    min-height: 100vh;
    font-family: "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
    background: radial-gradient(circle at 15% 20%, var(--page-bg-2), var(--page-bg-1) 55%);
    color: #1f2937;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.layout-root {
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #0b2132 0%, var(--sidebar-bg) 70%);
    color: var(--sidebar-text);
    min-height: 100vh;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #1f7a8c;
    color: #ffffff;
    font-weight: 700;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background-color: var(--sidebar-active);
    color: #ffffff;
}

.content-wrap {
    padding: 1rem;
}

.header-mobile {
    background: #ffffffcc;
    backdrop-filter: blur(8px);
}

.content-card {
    background: var(--main-card);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 42, 61, 0.08);
    animation: fade-up 0.35s ease-out;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table td,
.table th {
    vertical-align: middle;
    white-space: nowrap;
}

.table .name-cell {
    white-space: normal;
    min-width: 14rem;
}

.varid_msg {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 一覧 非活性データ行 */
.table-gray {
    --bs-table-bg: #a8abae;
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .content-wrap {
        padding: 1.5rem 2rem;
    }
}