body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f7f9fc;
    color: #1f2933;
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar {
    width: 260px;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    color: #4b5563;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
}

.card-stat {
    border: none;
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 20px 25px -15px rgba(15, 23, 42, 0.35);
}

.card-stat .card-icon {
    font-size: 2rem;
    opacity: 0.85;
}

.card-stat .card-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.stat-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.domain-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.status-active {
    color: #065f46;
    background-color: rgba(16, 185, 129, 0.16);
}

.status-expiring-soon {
    color: #92400e;
    background-color: rgba(245, 158, 11, 0.18);
}

.status-expired {
    color: #991b1b;
    background-color: rgba(239, 68, 68, 0.16);
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom-width: 1px;
}

.table tbody tr {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 18px -18px rgba(15, 23, 42, 0.35);
}

.domain-tip {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
}

.pagination .page-link {
    border-radius: 999px !important;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.badge-muted {
    background-color: #e5e7eb;
    color: #374151;
}

.trend-card {
    border-radius: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

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

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1020;
}

.sidebar-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.auth-body {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12), transparent 45%),
                radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.12), transparent 40%),
                radial-gradient(circle at 50% 90%, rgba(147, 197, 253, 0.22), transparent 55%),
                #f3f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 960px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 35px 60px -35px rgba(30, 64, 175, 0.35);
}

.auth-illustration {
    background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
    padding: 3rem;
    gap: 2rem;
}

.auth-illustration .badge {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    letter-spacing: 0.05em;
}

.auth-form {
    height: 100%;
}

.logo-circle {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.32));
    color: #2563eb;
    font-size: 1.5rem;
}

.auth-form .input-group-text {
    color: #4b5563;
    border-radius: 0.85rem 0 0 0.85rem;
}

.auth-form .form-control {
    border-radius: 0 0.85rem 0.85rem 0;
    border-left: none;
}

.auth-form .form-control:focus {
    border-left: none;
}

.auth-form .input-group:focus-within .input-group-text {
    color: #2563eb;
}

.auth-form .input-group:focus-within .form-control {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.auth-form button[type="submit"] {
    border-radius: 0.9rem;
    font-weight: 600;
    padding: 0.85rem;
}

.card-section-spacing > .card {
    margin-bottom: 1.5rem;
}

.footer-text {
    text-align: right;
}

.chart-wrapper {
    position: relative;
    min-height: 240px;
}

@media (max-width: 991.98px) {
    .auth-card {
        border-radius: 1.25rem;
    }

    .navbar .fs-5 {
        font-size: 1.1rem;
    }

    .auth-wrapper {
        padding: 0 0.5rem;
    }

    .footer-text {
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        z-index: 1030;
        height: 100%;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        box-shadow: 0 20px 45px -20px rgba(37, 99, 235, 0.45);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar {
        width: 320px;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }

    main .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .navbar .btn {
        padding: 0.4rem 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .card-stat {
        text-align: center;
        padding: 1.25rem;
    }

    .card-stat .card-value {
        font-size: 2rem;
    }

    .card-stat .card-icon {
        display: none;
    }

    .navbar .fs-5 {
        font-size: 1rem;
    }

    .auth-form {
        padding: 2rem 1.5rem !important;
    }

    .auth-form .input-group-text,
    .auth-form .form-control {
        border-radius: 0.75rem;
    }

    .auth-form .input-group-text {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }

    .auth-form .form-control {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }

    .table thead th {
        font-size: 0.75rem;
    }

    .table td {
        font-size: 0.85rem;
    }

    .domain-tip {
        display: none;
    }

    main .container-fluid {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        width: 85%;
        max-width: 290px;
    }

    main .container-fluid {
        padding: 1.25rem 1rem 2.5rem;
    }

    .card {
        border-radius: 1.25rem;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 0.95rem;
    }

    footer .container-fluid {
        padding: 0 1rem;
    }

    .auth-body {
        padding: 1.5rem 1rem;
    }

    .auth-card {
        border-radius: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }
}
