/* ClassDesk - Blue & White Theme */

:root {
    --cd-primary: #0d6efd;
    --cd-primary-dark: #0b5ed7;
    --cd-sidebar-bg: #0a2540;
    --cd-sidebar-hover: #123a63;
}

body {
    background-color: #f4f7fb;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Auth pages */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #0a2540 100%);
}

/* Brand logo */
.brand-logo-auth {
    display: block;
    height: 80px;
    width: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    border: 3px solid #0d6efd;
}

.brand-logo-nav {
    height: 40px;
    width: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Top navbar */
.app-navbar {
    background-color: var(--cd-sidebar-bg);
    height: 60px;
}

/* Layout wrapper */
.app-wrapper {
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: var(--cd-sidebar-bg);
    min-height: calc(100vh - 60px);
}

.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.65rem 1.25rem;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.app-sidebar .nav-link:hover {
    background-color: var(--cd-sidebar-hover);
    color: #fff;
}

.app-sidebar .nav-link.active {
    background-color: var(--cd-sidebar-hover);
    color: #fff;
    border-left-color: var(--cd-primary);
    font-weight: 600;
}

.app-content {
    min-width: 0;
}

/* Dashboard summary cards */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table thead th {
    background-color: #eef3fb;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #334;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        position: fixed;
        top: 60px;
        left: -240px;
        height: calc(100vh - 60px);
        z-index: 1030;
        transition: left 0.25s ease;
    }

    .app-sidebar.show {
        left: 0;
    }
}
