/* Game Page Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

/* Header Styles */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-bar {
    position: relative;
    margin: 0 2rem;
}

.search-input {
    padding: 0.5rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 300px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

.profile-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.profile-icon:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Game Categories */
.game-categories {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.category-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover {
    background-color: var(--primary-dark);
}

/* Featured Games */
.featured-games {
    padding: 4rem 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--bg-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.game-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.game-content {
    padding: 1.5rem;
}

.game-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.game-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.game-stats i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.play-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.play-btn:hover {
    background-color: var(--primary-dark);
}

/* Game Container */
.game-container {
    padding: 4rem 0;
    background-color: var(--bg-light);
    min-height: 500px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.game-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Game Info */
.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.level-info {
    font-weight: bold;
    color: #4b5563;
}

.score-info {
    color: #10b981;
    font-weight: bold;
}

.streak-info {
    color: #f59e0b;
    font-weight: bold;
}

/* Timer */
.timer-container {
    margin-bottom: 20px;
}

.timer-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background-color: #10b981;
    transition: width 1s linear, background-color 0.3s ease;
}

.timer-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #6b7280;
}

/* Question Container */
.question-container {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.question {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
}

/* Answer Input */
.answer-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2563eb;
}

/* Options (for Science Quiz) */
.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.option-btn {
    padding: 15px;
    font-size: 16px;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background-color: #f3f4f6;
    border-color: #3b82f6;
}

/* Progress Container */
.progress-container {
    margin-top: 20px;
}

.progress-text {
    text-align: center;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

/* Feedback */
.feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    animation: slideDown 0.3s ease-out;
    z-index: 1000;
}

.feedback.correct {
    background-color: #10b981;
    color: #ffffff;
}

.feedback.incorrect {
    background-color: #ef4444;
    color: #ffffff;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Level Complete */
.level-complete {
    text-align: center;
    padding: 30px;
}

.level-complete-header {
    margin-bottom: 30px;
}

.level-complete-header i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.level-complete-header h2 {
    font-size: 28px;
    color: #1f2937;
    margin: 0;
}

.level-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.level-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.next-level-btn,
.restart-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.next-level-btn {
    background-color: #10b981;
}

.next-level-btn:hover {
    background-color: #059669;
}

.restart-btn {
    background-color: #3b82f6;
}

.restart-btn:hover {
    background-color: #2563eb;
}

/* Word Scramble Specific */
.word-container {
    text-align: center;
}

.scrambled-word {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Dark Mode */
.dark-mode .game-area {
    background-color: #1f2937;
}

.dark-mode .game-info,
.dark-mode .question-container {
    background-color: #374151;
}

.dark-mode .level-info,
.dark-mode .question {
    color: #f3f4f6;
}

.dark-mode .answer-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark-mode .option-btn {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.dark-mode .option-btn:hover {
    background-color: #4b5563;
}

.dark-mode .stat {
    background-color: #374151;
}

.dark-mode .stat-value {
    color: #f3f4f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-area {
        padding: 15px;
    }

    .game-info {
        flex-direction: column;
        gap: 10px;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .level-stats {
        grid-template-columns: 1fr;
    }

    .question {
        font-size: 20px;
    }

    .scrambled-word {
        font-size: 24px;
    }
}

/* Game Placeholder */
.game-placeholder {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.game-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

.game-placeholder p {
    font-size: 18px;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #111827;
    --bg-light: #1f2937;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --border-color: #374151;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.3rem;
    }

    .nav-links {
        display: none;
    }

    .search-bar {
        margin: 0 1rem;
    }

    .search-input {
        width: 200px;
    }

    .hero {
        height: 250px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .categories-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Menu Styles */
.menu-wrapper {
    position: relative;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.menu-btn:hover {
    background-color: var(--bg-light);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--text-color);
}

.menu-sections {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-section ul {
    list-style: none;
}

.menu-section li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.menu-section li a:hover {
    background-color: var(--bg-light);
}

.menu-section li a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.menu-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.menu-tag.new {
    background-color: var(--accent-color);
}

.menu-tag.active {
    background-color: var(--secondary-color);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
} 



/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --background-light: #ffffff;
    --background-dark: #111827;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --transition-speed: 0.3s;
  }
  
  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Hide scrollbar for all elements */
  ::-webkit-scrollbar {
      width: 0px;
      height: 0px;
  }
  
  /* Hide scrollbar thumb */
  ::-webkit-scrollbar-thumb {
      background: transparent;
  }
  
  /* Hide scrollbar track */
  ::-webkit-scrollbar-track {
      background: transparent;
  }
  
  /* Firefox */
  * {
      scrollbar-width: none;
  }
  
  /* IE & Edge */
  * {
      -ms-overflow-style: none;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    transition: background-color var(--transition-speed);
    overflow-x: hidden;
  }
  
  /* Header Styles */
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .logo {
    height: 45px;
    width: auto;
    border-radius: 50px;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #6366f1;
  }
  
  .nav-links a:hover::after {
    width: 80%;
  }
  
  .nav-links li {
    position: relative;
    margin: 0 10px;
  }
  
  .nav-dropdown .dropdown-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
  }
  
  .nav-dropdown .dropdown-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-dropdown .dropdown-container ul li {
    padding: 10px;
  }
  
  .nav-dropdown .dropdown-container ul li a {
    color: #333;
    text-decoration: none;
    display: block;
  }
  
  .nav-dropdown .dropdown-container ul li a:hover {
    background-color: #f5f5f5;
  }
  
  .nav-dropdown:hover .dropdown-container {
    display: block;
  }
  
  /* Courses Dropdown Styles */
  .nav-links .nav-dropdown {
    position: relative;
  }
  
  .nav-links .nav-dropdown .dropdown-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .nav-links .nav-dropdown:hover .dropdown-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links .dropdown-container ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }
  
  .nav-links .dropdown-container ul li a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
  }
  
  .nav-links .dropdown-container ul li a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
  }
  
  /* Dark mode support */
  .dark-mode .nav-links .dropdown-container {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dark-mode .nav-links .dropdown-container ul li a {
    color: #e5e7eb;
  }
  
  .dark-mode .nav-links .dropdown-container ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #818cf8;
  }
  
  .search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
  }
  
  .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
  }
  
  .search-bar::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
  }
  
  .search-input:focus {
    outline: none;
    border-color: #6366f1;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .dark-mode-toggle {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .dark-mode-toggle:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
  }
  
  /* Profile Dropdown Styles */
  .profile-dropdown {
    position: relative;
  }
  
  .profile-icon {
    font-size: 1.5rem;
    color: #4b5563;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .profile-icon:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
  }
  
  .profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
  }
  
  .profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .profile-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), transparent);
  }
  
  .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  }
  
  .profile-info h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .profile-info span {
    color: #6366f1;
    font-size: 0.875rem;
  }
  
  .profile-sections {
    padding: 0.75rem;
  }
  
  .profile-section {
    margin-bottom: 0.5rem;
  }
  
  .profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .profile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .profile-link:hover {
    color: #6366f1;
    transform: translateX(4px);
  }
  
  .profile-link:hover::before {
    opacity: 1;
  }
  
  .profile-link i {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #6366f1;
    transition: transform 0.3s ease;
  }
  
  .profile-link:hover i {
    transform: scale(1.1);
  }
  
  .profile-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), transparent);
    margin: 0.75rem 0;
  }
  
  /* Sign Out Button Special Styling */
  .profile-link.sign-out {
    color: #ef4444;
    margin-top: 0.5rem;
  }
  
  .profile-link.sign-out i {
    color: #ef4444;
  }
  
  .profile-link.sign-out:hover {
    background: rgba(239, 68, 68, 0.1);
  }
  
  /* Menu Button and Dropdown Styles */
  .menu-wrapper {
    position: relative;
  }
  
  .menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    border-radius: 8px;
    color: #6366f1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .menu-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
  }
  
  .menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .menu-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .close-menu {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .close-menu:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
  }
  
  .menu-sections {
    padding: 1rem 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  .menu-section {
    padding: 0.5rem 1.5rem;
  }
  
  .menu-section h4 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
  }
  
  .menu-section ul {
    list-style: none;
  }
  
  .menu-section li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .menu-section li a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
  }
  
  .menu-section li a i {
    width: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
  }
  
  .menu-tag {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
  }
  
  .menu-tag.new {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
  }
  
  /* Add smooth scrollbar styling */
  .menu-sections::-webkit-scrollbar {
    width: 6px;
  }
  
  .menu-sections::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  .menu-sections::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
  }
  
  .menu-sections::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }
  
  /* Dropdown in menu-sections */
  .menu-dropdown-item {
    position: relative;
  }
  
  .menu-dropdown-item .menu-dropdown-container {
    display: none;
    position: static;
    background-color: #f9f9f9;
    border-left: 3px solid #007bff;
    margin-top: 5px;
    padding-left: 20px;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li {
    padding: 8px 0;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li a:hover {
    color: #007bff;
  }
  
  .menu-dropdown-item .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
  }
  
  .menu-dropdown-item.active .dropdown-icon {
    transform: rotate(180deg);
  }
  
  .menu-dropdown-item.active .menu-dropdown-container {
    display: block;
  }
  
  /* Course Dropdown Styles */
  .menu-dropdown-item .menu-dropdown-container {
    background: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 250px;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li {
    padding: 0;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li a {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
  }
  
  .menu-dropdown-item .menu-dropdown-container ul li a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
  }
  
  /* Dark mode support */
  .dark-mode .menu-dropdown-item .menu-dropdown-container {
    background: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dark-mode .menu-dropdown-item .menu-dropdown-container ul li a {
    color: #e2e8f0;
  }
  
  .dark-mode .menu-dropdown-item .menu-dropdown-container ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Notification Styles */
  .notification-center {
    position: relative;
  }
  
  .notification-bell {
    position: relative;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .notification-bell i {
    font-size: 1.25rem;
    color: #4b5563;
  }
  
  .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: all 0.3s ease;
  }
  
  .notification-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: -10rem;
    width: 380px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
  }
  
  .notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .notification-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
  }
  
  .notification-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
  }
  
  .notification-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
  }
  
  .notification-filters {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.02);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .notification-filters::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
  }
  
  .filter-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
  }
  
  .filter-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .filter-count {
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
  }
  
  .notification-body {
    flex: 1;
    min-height: 0;
    position: relative;
  }
  
  .notification-list {
    height: 100%;
    max-height: calc(85vh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    scroll-behavior: smooth;
  }
  
  .notification-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    display: block;
  }
  
  .notification-list::-webkit-scrollbar-track {
    background: transparent;
    display: block;
  }
  
  .notification-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
    display: block;
  }
  
  .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.3);
  }
  
  .notification-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.2) transparent;
  }
  
  .notification-item {
    width: 100%;
    min-height: fit-content;
    margin-bottom: 0.5rem;
  }
  
  .notification-item {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    position: relative;
  }
  
  .notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
  }
  
  .notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
  }
  
  .notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
  }
  
  .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .notification-icon.placement { background: rgba(16, 185, 129, 0.1); color: #10b981; }
  .notification-icon.academic { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
  .notification-icon.events { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
  
  .notification-content {
    flex: 1;
    min-width: 0;
  }
  
  .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .notification-footer {
    padding: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    background: white;
    position: sticky;
    bottom: 0;
  }
  
  .mark-all-read {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .mark-all-read:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
  }
  
  /* Dark Mode Support */
  .dark-mode .header {
    background-color: rgba(17, 24, 39, 0.95);
  }
  
  .dark-mode .nav-links a {
    color: var(--background-light);
  }
  
  .dark-mode .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .dark-mode .profile-icon {
    color: var(--background-light);
  }
  
  .dark-mode .notification-dropdown {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .dark-mode .notification-bell i {
    color: #e5e7eb;
  }
  
  .dark-mode .notification-header {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), transparent);
  }
  
  .dark-mode .filter-btn.active {
    background: #2d3748;
  }
  
  .dark-mode .notification-item {
    background: #1f2937;
  }
  
  .dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .dark-mode .notification-footer {
    background: #1f2937;
  }
  
  /* Custom Scrollbar */
  .notification-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .notification-list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .notification-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
  }
  
  .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.3);
  }
  
  /* Additional Notification Styles */
  .notification-loading,
  .notification-error,
  .notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
  }
  
  .notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  
  .notification-error {
    color: #ef4444;
  }
  
  .notification-error button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .notification-error button:hover {
    background: rgba(239, 68, 68, 0.2);
  }
  
  .notification-empty {
    color: var(--text-secondary);
    padding: 3rem 1rem;
  }
  
  .notification-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  /* Enhanced notification item hover effect */
  .notification-item {
    position: relative;
    overflow: hidden;
  }
  
  .notification-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.05),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .notification-item:hover::after {
    transform: translateX(100%);
  }
  
  /* Responsive Design */
  @media (max-width: 830px) {
    .nav-container {
      flex-wrap: wrap;
    }
    
    .nav-links {
      display: none;
    }
    
    .search-bar {
      order: 2;
    }
  }


  @media (max-width: 993px) {
  .main {
    display: block;
  }
}