/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/




:root {
    --nav-height: 68px;
    --footer-height: 56px;
    --primary: #004aad;
    --second: #EFB180;
    --secondary: #9A2A22;
    --accent: #ffdd57;
}

html, body {
    height: 100%;
}

body {
    background-color: #f5f7fb;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: var(--nav-height); /* make room for fixed header */
    padding-bottom: var(--footer-height); /* make room for fixed footer */
}

@media (max-width: 576px) {
    :root {
        --footer-height: 90px; /* or however tall it needs to be for stacked elements */
    }
}

/* Fixed navbar */
.navbar.fixed-top {
    height: var(--nav-height);
    background: linear-gradient(90deg, var(--primary), #007bff);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 1100;
}

.navbar .navbar-brand, .navbar .nav-link {
    color: #fff !important;
}

    .navbar .nav-link:hover, .navbar .navbar-brand:hover {
        color: var(--accent) !important;
    }

/* Offcanvas */
.offcanvas {
    width: 200px;
}

/* Main content card style */
.main.container {
    /* max-width: 1100px; */
    padding-bottom: 300px;
    /* padding-bottom: var(--footer-height); */
}

.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(7,17,27,0.06);
    margin-bottom: 1.5rem;
}

/* Fixed footer */
footer.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.06);
}

    footer.fixed-bottom a {
        color: var(--accent);
        text-decoration: none;
    }

.text-accent {
    color: var(--accent); /* Make sure this is defined in :root or CSS */
}

footer.fixed-bottom {
    background-color: var(--secondary);
}

/* Small device tweaks */


/* Utility: avatar pill */
.avatar-pill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    margin-right: .5rem;
}

.btn-toggle-white-bg {
    background-color: white;
    border: none;
}

    .btn-toggle-white-bg .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }


.card-body .text-muted {
    font-size: 0.8rem;
    font-weight: 500;
}

.card-body .fw-semibold {
    font-size: 1rem;
}


.student-avatar {
    transition: transform 0.2s ease-in-out;
}

    .student-avatar:hover {
        transform: scale(1.1);
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 220px;
}

.dropdown-item {
    padding: 8px 16px;
    border-radius: 4px;
    margin: 2px 8px;
    width: auto;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

.dropdown-header {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.nav-link.dropdown-toggle {
    transition: background-color 0.2s;
    border-radius: 6px;
    padding: 6px 12px;
}

    .nav-link.dropdown-toggle:hover {
        background-color: rgba(255,255,255,0.1);
    }

/* Mobile responsiveness */
@@media (max-width: 768px) {
    .nav-link.dropdown-toggle {
        padding: 8px;
    }

    .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}




/* Student avatar styles */
.student-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid white;
}

.student-avatar-md {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.online-indicator {
    width: 10px;
    height: 10px;
}

/* Loading state */
.js-loading * {
    transition: none !important;
}

/* Improved dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 8px 16px;
    border-radius: 4px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        transform: translateX(4px);
    }

/* Mobile optimizations */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 1rem;
    }

    .student-class {
        font-size: 0.7rem;
    }

    .fixed-bottom {
        padding: 0.5rem 0;
    }

        .fixed-bottom .container {
            padding: 0 1rem;
        }
}

/* Print styles */
@media print {
    .navbar, .fixed-bottom {
        display: none !important;
    }

    .container {
        margin-top: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: #000;
    }

    .fixed-bottom {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}