/* 
   Assessment Dojo Fundamental Theme
   Clean & Professional Corporate Style
*/

:root {
    --gt-blue-primary: #003882;
    --gt-blue-dark: #002356;
    --sidebar-bg: #060913;
    --gt-bg-main: #f8fafc;
    --sidebar-width: 255px;
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--gt-bg-main);
    color: #1e293b;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* MODERN LOGIN PAGE STYLING */
.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #003882 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    padding: 44px 36px;
    position: relative;
    z-index: 10;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gt-blue-primary), #1e40af);
    color: #ffffff;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 16px rgba(0, 56, 130, 0.25);
    margin-bottom: 16px;
}

.login-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 30px;
}

.input-pill-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-pill-box .form-control {
    width: 100%;
    border-radius: 50px;
    padding: 12px 46px 12px 46px;
    font-size: 0.92rem;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    height: 48px;
    color: #0f172a;
    font-weight: 500;
}

.input-pill-box .form-control:focus {
    background-color: #ffffff;
    border-color: var(--gt-blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 56, 130, 0.12);
}

.input-pill-box .input-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.input-pill-box:focus-within .input-icon-left {
    color: var(--gt-blue-primary);
}

.input-pill-box .btn-toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.2s ease;
}

.input-pill-box .btn-toggle-eye:hover {
    color: #0f172a;
}

.btn-login-pill {
    background: linear-gradient(135deg, var(--gt-blue-primary) 0%, var(--gt-blue-dark) 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    border: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 56, 130, 0.25);
}

.btn-login-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 56, 130, 0.35);
    color: #ffffff;
}

.login-footer-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 28px;
    text-align: center;
    font-weight: 500;
}

/* MODERN ADMIN SIDEBAR STYLING (MATCHING REFERENCE UI) */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.gt-sidebar {
    width: var(--sidebar-width);
    background: #060913;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    padding: 24px 22px 18px 22px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-header-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

.sidebar-nav {
    padding: 16px 14px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: capitalize;
    padding: 12px 12px 6px 12px;
    letter-spacing: 0.3px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link:hover i {
    color: #ffffff;
}

.sidebar-link.active {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    font-weight: 700;
    border-left: 3px solid #6366f1;
}

.sidebar-link.active i {
    color: #ffffff;
}

/* User Profile Footer */
.sidebar-footer-user {
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-nip {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* Dashboard Main Content */
.admin-main {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 24px 30px;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.page-title-icon {
    width: 36px;
    height: 36px;
    background: var(--gt-blue-primary);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* Content Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.dashboard-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-card-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991.98px) {
    .gt-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 15px;
    }
}