@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #003c6e;
    /* --primary: #4f46e5; */
    --primary-hover: #0f172a;
    --sidebar-bg: #ffffff;
    --sidebar-color: #475569;
    --sidebar-width: 260px;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --topbar-height: 80px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ─── GUEST PAGE (Login) ───────────────────────── */
.guest-page {
    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
    display: flex;
    /* align-items: center; */
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

#app_logo{
    width: 120px;
}

#admin_body{
   align-items: center !important; 
   background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}


#guest-page2 {
    width: 100%;
}

.login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.login-card2 {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 680px !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}
.brand-icon2 {
    width: 150px;
    height: 150px;
    /* background: linear-gradient(135deg, var(--primary), #818cf8); */
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    /* box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25); */
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.25rem;
}

.brand-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* ─── SIDEBAR ─────────────────────────────────── */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    column-gap: 4px;
    img{
        width: 65px !important;
        
    }
}

.sidebar-brand .brand-icon {
    width: 32px;
    height: 32px;
    margin: 0 12px 0 0;
    font-size: 16px;
    box-shadow: none;
    border-radius: 8px;
}

.sidebar-brand .brand-name {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: left;
}

.sidebar-brand .brand-sub {
    font-size: 0.7rem;
    margin-bottom: 0;
    text-align: left;
}

.nav-section {
    padding: 1.5rem 1rem 0;
}

.nav-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.nav-item-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-item-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.nav-item-link i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* ─── TOPBAR ──────────────────────────────────── */
#topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 900;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ─── MAIN CONTENT ────────────────────────────── */
#main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    min-height: 100vh;
}

.content-wrapper {
    padding: 2rem;
}

/* ─── CARDS & COMPONENTS ──────────────────────── */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.form-control, .form-select {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    background-color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: auto;
}

.sidebar-user:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn-outline-secondary:hover{
    color: black !important;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #topbar {
        left: 0;
        padding: 0 1rem;
    }
    .topbar-toggle {
        display: block;
    }
    #main-content {
        margin-left: 0;
    }
    .content-wrapper {
        padding: 1.25rem;
    }
}
