/* Ensure no bullets in navigation */
.chapter-container .chapter-nav ul,
.chapter-container .chapter-nav ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0;
    padding-left: 0;
}

/* Ensure buttons display properly */
.chapter-container .chapter-nav ul li a {
    text-decoration: none;
    display: block;
    width: auto;
}.chapter-nav i {
    margin-right: 0.5rem;
}.chapter-nav li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #004C9A;
    --secondary-color: #6E4BFB;
    --accent-color: #FB4B4B;
    --accent-green: #4BFB9D;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #F9F9FF;
    --white: #FFFFFF;
    --grey-light: #EEEEEE;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* CRITICAL FIX: Hide old mobile menu on desktop - only show on mobile */
#mobileMenu {
    display: none !important;
}

@media (max-width: 768px) {
    #mobileMenu {
        display: block !important;
    }
}

/* Reset CSS for better compatibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: none;
    transition: var(--transition);
    font-weight: 500;
}

.highlight {
    color: var(--accent-color);
}

/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Main Header Container */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
}

/* Header Brand (Logo + Text) */
.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-self: start;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy header support (for pages not using header-template.js) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    /* position: sticky; */
    top: 0;
    /* z-index: 100; */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.logo img {
    display: block;
    margin: 0;
    padding: 0;
    height: 4.5rem;
}

.install-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 1rem;
  }
  
  .install-button:hover {
    background-color: #e53935;
    transform: translateY(-2px);
  }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.logo img {
    display: block;
    margin: 0;
    padding: 0;
    height: 4.5rem; /* Adjust as needed */
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
}

.header-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.login-btn {
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.signup-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.signup-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.header-controls button {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-controls button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    display: block;
    background-color: transparent;
}

.nav-link:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.nav-link.active {
    color: var(--white);
    background-color: var(--primary-color);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1050;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover .hamburger-line {
    background-color: var(--secondary-color);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* User Menu (Desktop) */
.user-menu {
    position: relative;
    margin-left: 1rem;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--grey-light);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-toggle:hover {
    background-color: var(--background-light);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-dark);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-toggle i {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.user-menu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--grey-light);
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.user-menu-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-menu-email {
    font-size: 0.875rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-role {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.user-menu-divider {
    height: 1px;
    background: var(--grey-light);
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.user-menu-item i {
    width: 20px;
    color: var(--text-light);
}

.user-menu-item:hover i {
    color: var(--primary-color);
}

.logout-btn {
    color: var(--accent-color);
}

.logout-btn:hover {
    background-color: rgba(251, 75, 75, 0.1);
}

/* Dashboard Button */
.dashboard-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link,
.mobile-nav-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-button:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.mobile-nav-link i,
.mobile-nav-button i {
    width: 20px;
    color: var(--text-light);
}

.mobile-nav-link:hover i,
.mobile-nav-button:hover i {
    color: var(--primary-color);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--grey-light);
    margin: 1rem 0;
}

/* Menu Backdrop */
body.mobile-menu-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Landing Section */
.landing {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 3rem 4rem;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(75, 110, 251, 0.15);
}

.hero {
    flex: 1;
    text-align: left;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-buttons a {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--grey-light);
    transform: translateY(-3px);
}

/* Courses Section */
.courses-section {
    padding: 3rem 2rem;
    background-color: var(--white);
}

.courses-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.course-image i {
    font-size: 5rem;
    color: var(--white);
    opacity: 0.9;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.course-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.course-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Table of Contents */
.toc {
    padding: 3rem 2rem;
    background-color: var(--white);
}

.toc h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.toc-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.toc-unit {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.toc-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.toc-unit.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.toc-unit h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.toc-unit p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.toc-link {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    display: inline-block;
    align-self: flex-start;
}

.toc-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.coming-soon {
    background-color: var(--grey-light);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    display: inline-block;
    align-self: flex-start;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--grey-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a {
    color: var(--grey-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    width: 16px;
    text-align: center;
    color: var(--grey-light);
}

.footer-section ul li span {
    color: var(--grey-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--grey-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--grey-light);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--grey-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Legacy simple footer (index.html) */
.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--grey-light);
}

.footer-links a:hover {
    color: var(--white);
}

/* Chapter Pages */
.chapter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.chapter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chapter-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.chapter-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.chapter-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.timeline {
    margin: 2rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    display: flex;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 1.2rem;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-point {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-box {
    background-color: var(--grey-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.key-concept {
    background-color: rgba(75, 110, 251, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(75, 110, 251, 0.3);
}

.key-concept h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.caption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.nav-button.previous {
    background-color: var(--text-light);
}

.nav-button.previous:hover {
    background-color: var(--text-dark);
}

/* Chapter Nav Responsive */
@media (max-width: 600px) {
    .chapter-nav {
        padding: 0.8rem;
        overflow-x: auto;
    }
    
    .nav-buttons-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding-bottom: 0.5rem;
    }
    
    .nav-tab {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        white-space: nowrap;
    }
}

.install-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 1rem;
  }
  
  .install-button:hover {
    background-color: #e53935;
    transform: translateY(-2px);
  }
  
  /* Mobile install button */
  .mobile-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .mobile-install-button i {
    margin-right: 8px;
  }
  
  @media (max-width: 768px) {
    .install-button {
      display: none !important; /* Hide header button on mobile */
    }
  }

/* Responsive Styles */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    header,
    .main-header {
        padding: 0;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .logo h1,
    .brand-title {
        font-size: 1.2rem;
    }

    .logo img,
    .logo-image {
        height: 35px;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    /* Hide desktop navigation, show hamburger */
    .main-nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    /* Simplify header controls on mobile */
    .header-controls {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .header-btn .btn-text {
        display: none; /* Hide button text on mobile, show icons only */
    }

    .header-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }

    .dashboard-btn .btn-text {
        display: none;
    }

    /* Simplify user menu on mobile */
    .user-menu-toggle {
        padding: 0.5rem;
        border: none;
    }

    .user-name {
        display: none; /* Hide username on mobile */
    }

    .user-menu-toggle i {
        display: none; /* Hide dropdown arrow on mobile */
    }

    .user-menu-dropdown {
        right: -10px;
        min-width: 260px;
    }

    .landing {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .landing-image img {
        max-width: 300px;
    }

    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-point {
        left: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Course cards responsive */
    .course-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-image {
        height: 180px;
    }

    .course-image i {
        font-size: 4rem;
    }
}

/* Authentication Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(75, 110, 251, 0.05) 0%, rgba(110, 75, 251, 0.05) 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.info-message {
    background-color: rgba(75, 110, 251, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-message i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-message p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: var(--background-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Password requirements list — always visible */
.pw-reqs {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.9rem;
    background-color: var(--background-light);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    display: block;
}

.pw-req {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.pw-req i {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
    color: #cccccc;
    transition: color 0.2s;
}

.pw-req.pw-req-ok {
    color: #2da862;
}

.pw-req.pw-req-ok i {
    color: #2da862;
}

.pw-req.pw-req-fail {
    color: var(--accent-color);
}

.pw-req.pw-req-fail i {
    color: var(--accent-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background-color: var(--background-light);
    border: 2px solid var(--grey-light);
    border-radius: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    user-select: none;
}

/* Hide native checkbox — replaced by .checkmark */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox box */
.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 5px;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Tick mark (hidden until checked) */
.checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* Hover */
.checkbox-container:hover .checkmark {
    border-color: var(--primary-color);
    background-color: var(--white);
}

/* Checked */
.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

/* Focus ring */
.checkbox-container input[type="checkbox"]:focus-visible + .checkmark {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.link-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.link-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 110, 251, 0.3);
}

.auth-btn i {
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey-light);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header i {
        font-size: 3rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-light);
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--grey-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header img {
    height: 2.5rem;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.sidebar-profile {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grey-light);
    text-align: center;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--white);
    font-size: 1.4rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-role {
    color: var(--text-light);
    font-size: 0.85rem;
}

.sidebar-nav {
    padding: 0.5rem 0;
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

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

.nav-item.active {
    background-color: rgba(75, 110, 251, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Disabled navigation items */
.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.nav-item.disabled:hover {
    background-color: transparent;
    border-left-color: transparent;
}

/* Add "Coming Soon" badge to disabled items */
.nav-item.disabled span::after {
    content: " (Soon)";
    font-size: 0.75em;
    opacity: 0.85;
    font-style: italic;
}

/* Sidebar nav divider */
.nav-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 1.5rem;
}

/* Main Dashboard Content */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    padding:2rem;
}

.dashboard-topbar {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 2px solid var(--grey-light);
    border-radius: 25px;
    width: 300px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.topbar-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-icon:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.topbar-profile:hover {
    background-color: var(--background-light);
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.welcome-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    opacity: 1;
}

/* Dashboard Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.card-icon.blue {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-icon.green {
    background: linear-gradient(135deg, #4BFB9D, #00D084);
}

.card-icon.red {
    background: linear-gradient(135deg, #FB4B4B, #D32F2F);
}

.card-icon.orange {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
}

.card-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background-color: var(--grey-light);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Course Card */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.course-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-details {
    padding: 1.5rem;
}

.course-details h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.course-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.course-progress {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Data Table */
.data-table {
    background-color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.data-table h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--grey-light);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--grey-light);
    color: var(--text-dark);
}

.data-table tr:hover {
    background-color: var(--background-light);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: rgba(75, 251, 157, 0.2);
    color: #00D084;
}

.status-badge.pending {
    background-color: rgba(255, 167, 38, 0.2);
    color: #FB8C00;
}

.status-badge.inactive {
    background-color: rgba(251, 75, 75, 0.2);
    color: #D32F2F;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.action-btn.edit {
    background-color: rgba(75, 110, 251, 0.1);
    color: var(--primary-color);
}

.action-btn.delete {
    background-color: rgba(251, 75, 75, 0.1);
    color: var(--accent-color);
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

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

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-topbar {
        padding: 1rem;
    }

    .topbar-search input {
        width: 200px;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .course-list {
        grid-template-columns: 1fr;
    }

    .topbar-right {
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* ============================================
   Authentication Components
   ============================================ */

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-error {
    background-color: rgba(251, 75, 75, 0.1);
    color: #D32F2F;
    border-left: 4px solid var(--accent-color);
}

.alert-success {
    background-color: rgba(75, 251, 157, 0.1);
    color: #00D084;
    border-left: 4px solid var(--accent-green);
}

.alert-warning {
    background-color: rgba(255, 167, 38, 0.1);
    color: #FB8C00;
    border-left: 4px solid #FFA726;
}

.alert-info {
    background-color: rgba(75, 110, 251, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Loading Spinner */
/* Unified Loading Spinner System */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-spinner::after {
    content: 'Loading...';
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Small inline spinner for buttons */
button .loading-spinner,
.loading-spinner.small {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin-right: 0.5rem;
    vertical-align: middle;
}

button .loading-spinner::before,
.loading-spinner.small::before {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
}

button .loading-spinner::after,
.loading-spinner.small::after {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Menu Component */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.header-btn i {
    font-size: 1rem;
}

.header-btn.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.header-btn.login-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-btn.signup-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-btn.signup-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.header-btn.dashboard-btn {
    background-color: rgba(75, 110, 251, 0.1);
    color: var(--primary-color);
}

.header-btn.dashboard-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: var(--white);
    border: 2px solid var(--grey-light);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(75, 110, 251, 0.15);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-dark);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-toggle i {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: var(--transition);
}

.user-menu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(75, 110, 251, 0.05), rgba(110, 75, 251, 0.05));
    border-radius: 16px 16px 0 0;
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.user-menu-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-email {
    font-size: 0.85rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-role {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-menu-divider {
    height: 1px;
    background-color: var(--grey-light);
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.user-menu-item:hover {
    background-color: rgba(75, 110, 251, 0.05);
}

.user-menu-item i {
    font-size: 1rem;
    color: var(--text-light);
    width: 20px;
    flex-shrink: 0;
}

.user-menu-item.logout-btn {
    color: var(--accent-color);
}

.user-menu-item.logout-btn:hover {
    background-color: rgba(251, 75, 75, 0.05);
}

.user-menu-item.logout-btn i {
    color: var(--accent-color);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background-color: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 2rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(75, 110, 251, 0.05);
    color: var(--primary-color);
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 24px;
}

.mobile-nav-divider {
    height: 1px;
    background-color: var(--grey-light);
    margin: 1rem 1.5rem;
}

.mobile-nav-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.mobile-nav-button:hover {
    background-color: rgba(251, 75, 75, 0.05);
}

.mobile-nav-button i {
    font-size: 1.1rem;
    width: 24px;
}

/* Form Loading State */
.auth-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.auth-form input.error {
    border-color: var(--accent-color);
}

.auth-form input.error:focus {
    outline-color: var(--accent-color);
}

/* Responsive Auth Components */
@media (max-width: 768px) {
    .header-controls {
        gap: 0.5rem;
    }

    .header-btn .btn-text {
        display: none;
    }

    .header-btn {
        padding: 0.65rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .header-btn i {
        margin: 0;
    }

    .user-menu-toggle {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .user-name {
        display: none;
    }

    .user-menu-dropdown {
        right: -1rem;
        min-width: 260px;
    }

    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .user-menu-dropdown {
        position: fixed;
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

/* ========================================
   PHASE 4: DASHBOARD STYLES
   ======================================== */

/* Loading Spinner */
/* Loading spinner styles consolidated above (line ~2116) */

.dashboard-content.loading {
    opacity: 0.95;
    pointer-events: none;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Error State Styles */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff3f3;
    border-radius: 8px;
    border: 2px solid #ffcdd2;
}

.error-state .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #f44336;
}

.error-state h2 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

.error-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Course Grid (Student Dashboard) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.course-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.course-card .course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.course-card .course-header h3 {
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
}

.course-card .course-badge {
    background: #00a8e8;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-card .course-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-card .course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Instructor Course Card Variations */
.instructor-course .course-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.instructor-course .course-status.published {
    background: #4caf50;
    color: white;
}

.instructor-course .course-status.draft {
    background: #ff9800;
    color: white;
}

.instructor-course .course-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.instructor-course .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.instructor-course .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.instructor-course .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00a8e8;
}

.instructor-course .stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Quiz Attempts List */
.quiz-attempts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-attempt-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.quiz-attempt-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quiz-attempt-item.passed {
    border-left: 4px solid #4caf50;
}

.quiz-attempt-item.failed {
    border-left: 4px solid #f44336;
}

.quiz-attempt-item .quiz-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.quiz-attempt-item .quiz-date {
    color: #666;
    font-size: 0.9rem;
}

.quiz-attempt-item .quiz-score {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quiz-attempt-item .score-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.quiz-attempt-item .score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.score-badge.badge-success {
    background: #4caf50;
    color: white;
}

.score-badge.badge-danger {
    background: #f44336;
    color: white;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.certificate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card .certificate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certificate-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.certificate-card .certificate-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Circular Progress Chart */
.circular-progress {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.circular-progress .progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

/* Grading Queue List */
.grading-queue-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-section-title {
    font-size: 1.1rem;
    color: #00a8e8;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.grading-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.grading-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #00a8e8;
}

.grading-item .item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.grading-item .item-meta {
    color: #666;
    font-size: 0.9rem;
}

.grading-item .item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: #f5f5f5;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-icon.delete:hover {
    color: #f44336;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.student {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.instructor {
    background: #fff3e0;
    color: #f57c00;
}

.role-badge.admin {
    background: #fce4ec;
    color: #c2185b;
}

/* Table Header with Actions */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header h3 {
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.pagination .page-info {
    color: #666;
    font-size: 0.9rem;
}

/* Bar Chart (Admin Dashboard) */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    min-width: 150px;
    font-weight: 500;
    color: #333;
}

.bar-container {
    flex: 1;
    background: #e0e0e0;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.bar-fill.students {
    background: linear-gradient(90deg, #00a8e8 0%, #0077b3 100%);
}

.bar-fill.instructors {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.bar-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Activity List (Admin Dashboard) */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-item .activity-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.activity-item .activity-details {
    flex: 1;
}

.activity-item .activity-description {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.activity-item .activity-time {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* No Data Message */
.no-data {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* Responsive Dashboard Styles */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .quiz-attempt-item,
    .grading-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quiz-attempt-item .quiz-score {
        width: 100%;
        justify-content: space-between;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .bar-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bar-label {
        min-width: auto;
    }

    .bar-container {
        width: 100%;
    }
}

/* ============================================
   PHASE 5B: ADMIN CONTENT MANAGEMENT STYLES
   ============================================ */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Details Modal Styles */
.details-container {
    margin-bottom: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #f0f2f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
    word-break: break-word;
}

.detail-value i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.detail-code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

/* Status badges in details view */
.detail-value .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value .status-badge.published {
    background: #d4edda;
    color: #155724;
}

.detail-value .status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.detail-value .status-badge i {
    margin-right: 0.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00a8e8;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.filter-select,
.filter-input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.course-card-header {
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.course-card-body {
    padding: 1.5rem;
}

.course-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.published {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.draft {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.featured {
    background: #e3f2fd;
    color: #1565c0;
}

.course-card-body h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #333;
}

.course-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #999;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.view {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.view:hover {
    background: #bbdefb;
}

.action-btn.edit {
    background: #fff3e0;
    color: #f57c00;
}

.action-btn.edit:hover {
    background: #ffe0b2;
}

.action-btn.publish {
    background: #e8f5e9;
    color: #388e3c;
}

.action-btn.publish:hover {
    background: #c8e6c9;
}

.action-btn.unpublish {
    background: #fce4ec;
    color: #c2185b;
}

.action-btn.unpublish:hover {
    background: #f8bbd0;
}

.action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

.action-btn.delete:hover {
    background: #ffcdd2;
}

/* Module List Styles */
.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s;
}

.module-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-item.dragging {
    opacity: 0.5;
    cursor: move;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: #333;
}

.module-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.module-actions {
    display: flex;
    gap: 0.5rem;
}

.drag-handle {
    cursor: move;
    color: #999;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.drag-handle:hover {
    color: #666;
}

/* Lesson List Styles */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-info {
    flex: 1;
}

.lesson-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.lesson-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.lesson-actions {
    display: flex;
    gap: 0.5rem;
}

/* Rich Text Editor Container */
.editor-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.editor-toolbar {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
}

.editor-content {
    min-height: 300px;
    padding: 1rem;
    background: #fff;
}

/* Quiz Styles */
.quiz-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-text {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.question-options {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.question-options li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.question-options li.correct {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

/* Quiz Question Options Input */
.option-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.option-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.option-input-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-input-group label {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.lesson-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Responsive Styles for Admin Content */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .module-item,
    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .module-actions,
    .lesson-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===================================
   Breadcrumb Navigation (Phase 5D Priority 2)
   =================================== */

.breadcrumb {
    background: var(--white);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb-item.current {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.breadcrumb-link i {
    font-size: 0.85rem;
}

.breadcrumb-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-text i {
    font-size: 0.85rem;
}

.breadcrumb-separator {
    color: var(--grey-light);
    font-size: 0.7rem;
    margin: 0 0.25rem;
}

/* Mobile-responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    .breadcrumb-list {
        gap: 0.25rem;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    /* Hide breadcrumb labels on very small screens, keep icons */
    @media (max-width: 480px) {
        .breadcrumb-label {
            display: none;
        }

        .breadcrumb-link,
        .breadcrumb-text {
            gap: 0;
            padding: 0.25rem;
        }

        .breadcrumb-separator {
            margin: 0 0.15rem;
        }
    }
}

/* Breadcrumb loading state */
.breadcrumb.loading {
    opacity: 0.6;
    pointer-events: none;
}

.breadcrumb.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 16px;
    height: 16px;
    border: 2px solid var(--grey-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===================================
   Student Notes Section (Phase 5D Priority 4)
   =================================== */

.student-notes-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--grey-light);
}

.notes-header h3 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-editor {
    margin-bottom: 1.5rem;
}

#quill-editor {
    background: white;
    border: 1px solid var(--grey-light);
    border-radius: 4px;
}

.notes-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.notes-display {
    max-height: 400px;
    overflow-y: auto;
}

.note-item {
    background: var(--background-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.note-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.note-content h1,
.note-content h2,
.note-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.note-content p {
    margin-bottom: 0.5rem;
}

.note-content ul,
.note-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--grey-light);
}

.note-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-icon:hover {
    background: white;
    color: var(--primary-color);
}

.btn-icon.delete:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .student-notes-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .notes-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .notes-header button {
        width: 100%;
        justify-content: center;
    }

    .notes-actions {
        flex-direction: column;
    }

    .notes-actions button {
        width: 100%;
    }

    .note-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================
   Bookmarks (Phase 5D Priority 5)
   =================================== */

.bookmark-button {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.bookmark-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bookmark-button.bookmarked {
    background: var(--primary-color);
    color: white;
}

.bookmark-button.bookmarked i {
    font-weight: 900; /* Solid icon */
}

.bookmark-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .bookmark-button .bookmark-text {
        display: none;
    }

    .bookmark-button {
        padding: 0.75rem;
        min-width: 50px;
        justify-content: center;
    }
}
}
/* ========================================
   INSTRUCTOR GRADING INTERFACE (Phase B)
   ======================================== */

.grading-filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 200px;
    font-size: 0.9375rem;
}

.filter-stats {
    margin-left: auto;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.grading-queue-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.grading-table {
    width: 100%;
    border-collapse: collapse;
}

.grading-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.grading-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.grading-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.grading-table tbody tr:hover {
    background: var(--bg-light);
}

.pending-row {
    background: #fffbf0;
}

.student-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.score-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.score-badge.pass {
    background: #d4edda;
    color: #155724;
}

.score-badge.fail {
    background: #f8d7da;
    color: #721c24;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-graded {
    background: #d4edda;
    color: #155724;
}

.modal-large {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.student-info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.answer-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.answer-status.correct {
    color: #28a745;
}

.answer-status.incorrect {
    color: #dc3545;
}

.grading-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ========================================
   PROJECT SUBMISSION INTERFACE (Phase B)
   ======================================== */

.project-info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.project-info-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-text {
    line-height: 1.8;
    color: var(--text-dark);
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* color: var(--text-light); */
    font-size: 0.9375rem;
}

.submission-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.submission-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.upload-container {
    max-width: 800px;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.drop-zone i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.drop-zone p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.supported-formats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.file-list h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.files-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

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

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--text-dark);
    word-break: break-word;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.file-remove {
    background: #f8d7da;
    color: #721c24;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: var(--transition);
}

.file-remove:hover {
    background: #dc3545;
    color: white;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.submission-history {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.submission-history h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.submission-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.submission-score,
.submission-feedback,
.submission-notes,
.submission-files {
    margin-top: 1rem;
}

.submission-score strong,
.submission-feedback strong,
.submission-notes strong,
.submission-files strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.submission-feedback p,
.submission-notes p {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    margin: 0;
}

.file-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: var(--transition);
}

.file-link:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .drop-zone {
        padding: 2rem 1rem;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .file-links {
        flex-direction: column;
    }
}

/* ========================================
   PROFILE PAGE ENHANCEMENTS (Phase B)
   ======================================== */

.profile-avatar-large {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-danger:hover {
    background-color: #c82333;
}

.profile-achievements-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-achievements-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.achievements-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.achievement-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.achievement-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.achievement-mini.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: white;
}

.achievement-mini.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    color: #333;
}

.achievement-mini.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.achievement-mini.platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #ffffff 100%);
    color: #333;
}

.achievement-mini i {
    font-size: 2rem;
}

.achievement-mini-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .achievements-mini-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .achievement-mini {
        padding: 0.75rem;
    }

    .achievement-mini i {
        font-size: 1.5rem;
    }
}

/* ===================================
   Phase 8: Profile Edit Styles
   =================================== */

.profile-edit-main {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.profile-edit-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-edit-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-edit-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.profile-edit-header h1 i {
    color: #4B6EFB;
    margin-right: 10px;
}

.profile-completion {
    max-width: 400px;
    margin: 0 auto;
}

.profile-completion span {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.profile-completion strong {
    color: #fff;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4B6EFB 0%, #6E4BFB 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.edit-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.edit-section h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-section h2 i {
    color: #4B6EFB;
}

.avatar-upload-area {
    display: flex;
    align-items: center;
    gap: 30px;
}

.current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4B6EFB 0%, #6E4BFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-controls {
    flex: 1;
}

.avatar-controls button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Scope these styles to profile edit page only */
.profile-edit-main .form-group {
    margin-bottom: 20px;
}

.profile-edit-main .form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
}

.profile-edit-main .form-group label i {
    color: #4B6EFB;
    margin-right: 5px;
}

.profile-edit-main .form-group input[type="text"],
.profile-edit-main .form-group input[type="url"],
.profile-edit-main .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.profile-edit-main .form-group input:focus,
.profile-edit-main .form-group textarea:focus {
    outline: none;
    border-color: #4B6EFB;
    background: rgba(75, 110, 251, 0.1);
}

.profile-edit-main .form-group input.invalid {
    border-color: #FB4B4B;
}

.profile-edit-main .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    display: block;
    text-align: right;
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-top: 5px;
}

.optional {
    color: #a0a0a0;
    font-weight: normal;
    font-size: 0.85rem;
}

.help-text {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Privacy Toggles */
.privacy-toggle {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.privacy-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

input[type="checkbox"]:checked + .toggle-slider {
    background: #4B6EFB;
}

input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

input[type="checkbox"] {
    display: none;
}

.toggle-text {
    flex: 1;
}

.toggle-text strong {
    display: block;
    color: #fff;
    margin-bottom: 3px;
}

.toggle-text small {
    color: #a0a0a0;
    font-size: 0.85rem;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-success {
    background: linear-gradient(135deg, #4BFB9D 0%, #3BCF7D 100%);
}

.notification-error {
    background: linear-gradient(135deg, #FB4B4B 0%, #CF3B3B 100%);
}

.notification-info {
    background: linear-gradient(135deg, #4B6EFB 0%, #3B4ECF 100%);
}

.notification i {
    font-size: 1.2rem;
}

/* ===================================
   NOTIFICATION BELL & DROPDOWN
   =================================== */

.notification-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-dark, #333);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-btn:hover {
    color: var(--primary-color, #4B6EFB);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: #FB4B4B;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--white, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.notif-header-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--primary-color, #4B6EFB);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notif-mark-all:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.notif-item:hover {
    background: #f8f9fa;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-unread {
    background: #f0f4ff;
}

.notif-unread:hover {
    background: #e6ecff;
}

.notif-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
    font-size: 0.9rem;
}

.notif-unread .notif-item-icon {
    background: #e0e7ff;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.3;
}

.notif-item-message {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
}

.notif-unread-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--primary-color, #4B6EFB);
    border-radius: 50%;
    margin-top: 6px;
}

.notif-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #999;
}

.notif-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.notif-empty p {
    font-size: 0.85rem;
}

.notif-loading {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        top: 60px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-upload-area {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions button,
    .profile-actions a {
        width: 100%;
    }

    .profile-edit-header h1 {
        font-size: 2rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

/* ===================================
   PROFILE DISPLAY (Phase 8B)
   =================================== */

/* Profile Main Container */
.profile-main {
    min-height: calc(100vh - 200px);
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-header p {
    color: #666;
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    gap: 30px;
}

/* Profile Avatar Section */
.profile-avatar-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-section .btn-secondary,
.profile-avatar-section .btn-danger {
    margin-top: 10px;
}

.profile-avatar-section .help-text {
    margin-top: 10px;
    color: #999;
    font-size: 0.9rem;
}

/* Profile Info Section */
.profile-info-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-info-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-group {
    margin-bottom: 20px;
}

.info-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-group label i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.info-group p {
    margin: 0;
    padding-left: 26px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Profile Stats Section */
.profile-stats-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-stats-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item h3 {
    margin: 10px 0 5px;
    font-size: 2rem;
    color: #333;
}

.stat-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.profile-stats-section .help-text {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Profile Details Section */
.profile-details-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.profile-details-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-details-section .info-group {
    margin-bottom: 20px;
}

.profile-details-section .info-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.profile-details-section .info-group label i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.profile-details-section .info-group p {
    margin: 0;
    padding-left: 26px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bio Text */
.bio-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 26px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(75, 110, 251, 0.2);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.social-link i {
    font-size: 1.1rem;
}

/* Profile Empty Message */
.profile-details-section .help-text {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-details-section .help-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.profile-details-section .help-text a:hover {
    text-decoration: underline;
}

/* Profile Actions Button Styles */
.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.profile-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.profile-actions .btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.profile-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Profile Display */
@media (max-width: 768px) {
    .profile-main {
        padding: 60px 15px 30px;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-header p {
        font-size: 1rem;
    }

    .profile-avatar-section,
    .profile-info-section,
    .profile-details-section,
    .profile-stats-section,
    .profile-achievements-section {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        padding-left: 0;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    .profile-actions {
        flex-direction: column;
        gap: 10px;
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Text Utility Classes */
.text-muted {
    color: #999;
    font-style: italic;
}

.text-error {
    color: #dc3545;
    font-weight: 500;
}

/* ===================================
   PUBLIC PROFILE VIEW (Phase 8C)
   =================================== */

/* Main Container */
.profile-view-main {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.profile-view-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Loading and Error States */
.loading-container,
.error-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.loading-container i,
.error-container i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-container h2 {
    color: #333;
    margin: 20px 0 10px;
}

.error-container p {
    color: #666;
    margin-bottom: 30px;
}

/* Public Profile Header */
.public-profile-header {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.public-profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.public-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(75, 110, 251, 0.3);
    overflow: hidden;
}

.public-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-views-badge {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-views-badge i {
    color: var(--primary-color);
}

/* Public Profile Info */
.public-profile-info {
    flex: 1;
}

.public-profile-info h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    color: #333;
}

.profile-headline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.profile-meta i {
    color: var(--primary-color);
}

/* Public Profile Sections */
.public-profile-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.public-profile-section h2 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(75, 110, 251, 0.2);
}

.social-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(75, 110, 251, 0.4);
}

.social-link-card i {
    font-size: 1.5rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.achievement-badge {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.achievement-badge.bronze {
    border-color: #CD7F32;
}

.achievement-badge.silver {
    border-color: #C0C0C0;
}

.achievement-badge.gold {
    border-color: #FFD700;
}

.achievement-badge.platinum {
    border-color: #E5E4E2;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.achievement-badge h4 {
    margin: 10px 0 5px;
    color: #333;
}

.achievement-badge p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.achievement-date {
    font-size: 0.85rem;
    color: #999;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.certificate-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.certificate-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.certificate-card h4 {
    margin: 10px 0;
    color: #333;
}

.certificate-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Public Stats Grid */
.public-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.public-stat-item {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.public-stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.public-stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.public-stat-item h3 {
    font-size: 2rem;
    margin: 10px 0 5px;
    color: #333;
}

.public-stat-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Public Profile */
@media (max-width: 768px) {
    .public-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .public-profile-info h1 {
        font-size: 2rem;
    }

    .profile-meta {
        justify-content: center;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .public-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   PROFILES DIRECTORY (Phase 8C)
   =================================== */

/* Main Container */
.directory-main {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.directory-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Directory Header */
.directory-header {
    text-align: center;
    margin-bottom: 40px;
}

.directory-header h1 {
    font-size: 3rem;
    color: #333;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.directory-header p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Directory Controls */
.directory-controls {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i.fa-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 55px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 110, 251, 0.1);
}

.search-box .clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-box .clear-btn:hover {
    color: #333;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Results Info */
.results-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 1rem;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.profile-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.profile-card-content {
    width: 100%;
}

.profile-card-name {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #333;
}

.profile-card-headline {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
}

.profile-card-role,
.profile-card-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.profile-card-meta i {
    color: var(--primary-color);
}

.profile-card-stats {
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
    color: #999;
    font-size: 0.85rem;
}

.profile-card-stats i {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin: 20px 0 10px;
}

.empty-state p {
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    font-weight: 600;
    color: #666;
}

/* Responsive Directory */
@media (max-width: 768px) {
    .directory-header h1 {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   PHASE 10: ADVANCED ANALYTICS DASHBOARD STYLES
   ================================================================ */

/* Analytics Filter Bar */
.analytics-filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.analytics-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 110, 251, 0.1);
}

#custom-date-inputs {
    display: flex;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 110, 251, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Analytics Summary Cards */
.analytics-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.stat-content p {
    margin: 0.25rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Analytics Charts Grid */
.analytics-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card.half-width {
    grid-column: span 1;
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h3 i {
    color: var(--primary-color);
}

.chart-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.chart-container {
    position: relative;
    width: 100%;
}

.chart-description {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Struggle Indicators List */
.struggle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.struggle-item {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 4px solid #FFA500;
    transition: all 0.3s ease;
}

.struggle-item.struggle-critical {
    border-left-color: #FB4B4B;
    background: #FFF5F5;
}

.struggle-item.struggle-high {
    border-left-color: #FFA500;
    background: #FFF9F0;
}

.struggle-item.struggle-moderate {
    border-left-color: #FFD700;
    background: #FFFEF0;
}

.struggle-item.struggle-low {
    border-left-color: #4BFB9D;
    background: #F5FFF9;
}

.struggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.struggle-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.struggle-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.struggle-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.struggle-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.struggle-stats .stat i {
    color: var(--primary-color);
}

.struggle-actions {
    display: flex;
    gap: 0.5rem;
}

/* Insights Section */
.insights-section {
    margin-bottom: 2rem;
}

.insights-section h2 {
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-section h2 i {
    color: #FFD700;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    border-left: 4px solid;
}

.insight-card.insight-success {
    border-left-color: #4BFB9D;
    background: linear-gradient(135deg, #ffffff, #f5fff9);
}

.insight-card.insight-warning {
    border-left-color: #FFA500;
    background: linear-gradient(135deg, #ffffff, #fff9f0);
}

.insight-card.insight-info {
    border-left-color: #4B6EFB;
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-success .insight-icon {
    background: rgba(75, 251, 157, 0.2);
    color: #4BFB9D;
}

.insight-warning .insight-icon {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.insight-info .insight-icon {
    background: rgba(75, 110, 251, 0.2);
    color: #4B6EFB;
}

.insight-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.insight-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Loading and Error States - spinner styles consolidated above (line ~2116) */

.no-data-message {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-data-message i {
    display: block;
    margin-bottom: 1rem;
}

.no-data-message p {
    margin: 0;
    font-size: 1.1rem;
}

.error-message {
    background: #FFF5F5;
    border-left: 4px solid #FB4B4B;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-message i {
    color: #FB4B4B;
    font-size: 1.5rem;
}

.error-message p {
    margin: 0;
    color: #333;
}

/* Responsive Analytics Styles */
@media (max-width: 768px) {
    .analytics-filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .analytics-summary-cards {
        grid-template-columns: 1fr;
    }

    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card.half-width {
        grid-column: 1;
    }

    .chart-container {
        height: 250px !important;
    }

    .struggle-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Signup Role-Based Form — Phase 13
   ===================================================== */

/* Role selector */
.role-selector {
    margin-bottom: 1.5rem;
}

.role-selector-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.role-options {
    display: flex;
    gap: 0.6rem;
}

.role-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.role-option i {
    font-size: 1.4rem;
}

.role-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.role-option.active {
    border-color: var(--primary-color);
    background: rgba(75, 110, 251, 0.08);
    color: var(--primary-color);
}

/* Select element (grade) — matches existing input styles */
.auth-form .form-group select {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.auth-form .form-group select:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    outline: none;
}

/* Readonly district field */
.auth-form .form-group input[readonly] {
    opacity: 0.6;
    cursor: default;
    background-color: var(--grey-light);
}

/* ── School autocomplete combobox ── */
.school-combobox {
    position: relative;
}

.school-combobox-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.school-combobox-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.school-combobox-input {
    width: 100%;
    padding: 0.9rem 2.5rem 0.9rem 2.5rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.school-combobox-input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
}

.school-combobox.has-selection .school-combobox-input {
    border-color: #4BFB9D;
    background-color: var(--white);
}

.school-combobox.has-error .school-combobox-input {
    border-color: #FB4B4B;
}

.school-combobox-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.85rem;
    line-height: 1;
}

.school-combobox-clear:hover {
    color: var(--accent-color);
}

/* Dropdown list */
.school-combobox-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    box-shadow: 0 8px 24px rgba(75, 110, 251, 0.15);
}

.school-combobox-list.open {
    display: block;
}

.school-combobox-list li[role="option"] {
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-bottom: 1px solid var(--grey-light);
}

.school-combobox-list li[role="option"]:last-child {
    border-bottom: none;
}

.school-combobox-list li[role="option"]:hover,
.school-combobox-list li[role="option"].active {
    background-color: rgba(75, 110, 251, 0.08);
}

.school-combobox-list li[role="option"] .school-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.school-combobox-list li[role="option"] .school-district {
    font-size: 0.78rem;
    color: var(--text-light);
}

.school-combobox-list li[role="option"] mark {
    background: rgba(75, 110, 251, 0.18);
    color: var(--primary-color);
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

.school-combobox-empty,
.school-combobox-more {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.school-combobox-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-light);
    font-size: 0.82rem;
}

/* Gender radio group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-container input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.radio-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    user-select: none;
}

/* Responsive — stack role buttons on small screens */
@media (max-width: 480px) {
    .role-options {
        flex-direction: column;
    }

    .role-option {
        flex-direction: row;
        justify-content: center;
        padding: 0.65rem 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}
