﻿/* ========================================================================
   MODERN SCHOOL THEME 2024 - เนเธฃเธเน€เธฃเธตเธขเธเธเนเธฒเธเธญเธฒเธงเธญเธข
   เธชเธต: เธเนเธฒ-เธเธฒเธง เธเธฃเนเธญเธก Gradients, Shadows & Animations
   Responsive: Desktop, Tablet, Mobile
   ======================================================================== */

/* ========================================
   1. CSS VARIABLES - Modern Color Scheme
   ======================================== */
:root {
    /* Primary Colors - Blue Shades */
    --primary-blue: #0ea5e9;
    --primary-blue-light: #38bdf8;
    --primary-blue-dark: #0284c7;
    --primary-blue-darker: #075985;
    
    /* Secondary Colors - Sky Blue */
    --sky-blue: #7dd3fc;
    --sky-blue-light: #bae6fd;
    --sky-blue-lighter: #e0f2fe;
    
    /* Accent Colors */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f5f9;
    --gray: #94a3b8;
    --dark-gray: #475569;
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-header: linear-gradient(180deg, #0284c7 0%, #0ea5e9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(56, 189, 248, 0.8) 100%);
    
    /* Shadow Variables */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 10px 30px -5px rgba(14, 165, 233, 0.3);
    --shadow-blue-hover: 0 20px 40px -5px rgba(14, 165, 233, 0.4);
    
    /* Container Max Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. GLOBAL STYLES & ANIMATIONS
   ======================================== */
body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-blue-light);
    color: white;
}

/* ========================================
   3. KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   4. HEADER & TOP BAR STYLES
   ======================================== */
.body-top-bar {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 50;
    animation: fadeInDown 0.6s ease-out;
}

.body-top-bar .container {
    padding: var(--spacing-xs) var(--spacing-sm);
}

.login-user-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
}

.login-user-search .user-login-wrap,
.login-user-search .search-wrap {
    color: white;
}

.login-user-search a {
    color: white;
    transition: all var(--transition-base);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
}

.login-user-search a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.skin-header {
    background: linear-gradient(180deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 40;
    border-bottom: none;
}

.skin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.skin-header .container {
    position: relative;
    z-index: 1;
}

/* Logo Styles */
.dnn-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    animation: slideInLeft 0.8s ease-out;
}

.dnn-logo img {
    max-height: 60px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-base);
}

.dnn-logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.dnn-logo div,
.dnn-logo .community-text {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-indent: 0 !important;
    overflow: visible !important;
}

/* ========================================
   5. NAVIGATION MENU - Modern Design
   ======================================== */
.navbar {
    padding: 0;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.navbar-nav {
    gap: var(--spacing-xs);
}

.navbar-nav .nav-item {
    position: relative;
    border-bottom: none !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

/* Dropdown Menu */
.dropdown-menu {
    background: white !important;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    animation: fadeInUp 0.3s ease-out;
}

.dropdown-item {
    color: var(--dark-gray) !important;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-base);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ========================================
   6. MAIN CONTENT AREA
   ======================================== */
.page-content-wrapper {
    background: var(--off-white);
    min-height: 100vh;
}

.skin-main {
    padding: var(--spacing-2xl) 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.container {
    max-width: var(--container-xl);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* ========================================
   7. CARDS & COMPONENTS
   ======================================== */
.modern-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modern-card:hover {
    box-shadow: var(--shadow-blue-hover);
    transform: translateY(-8px);
}

.modern-card-title {
    color: var(--primary-blue-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.modern-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Stats Card */
.stats-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-blue);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stats-label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-blue);
}

.stats-icon i {
    color: white;
    font-size: 1.75rem;
}

/* ========================================
   8. GRID LAYOUTS
   ======================================== */
.modern-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.modern-grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.modern-grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.modern-grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .modern-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .modern-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .modern-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .modern-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .modern-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   9. MODERN TABLES
   ======================================== */
.modern-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modern-table thead {
    background: var(--gradient-primary);
    color: white;
}

.modern-table th {
    padding: var(--spacing-md);
    font-weight: 600;
    text-align: left;
    border: none;
}

.modern-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}

.modern-table tbody tr {
    transition: all var(--transition-base);
}

.modern-table tbody tr:hover {
    background: var(--sky-blue-lighter);
    transform: scale(1.01);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   10. BUTTONS & LINKS
   ======================================== */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-blue);
    transition: all var(--transition-base);
    cursor: pointer;
}

.modern-btn:hover {
    box-shadow: var(--shadow-blue-hover);
    transform: translateY(-3px);
    color: white;
}

.modern-btn:active {
    transform: translateY(-1px);
}

.modern-btn-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.modern-btn-outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ========================================
   11. BADGES & TAGS
   ======================================== */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.modern-badge-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

/* ========================================
   12. FOOTER STYLES
   ======================================== */
.skin-footer {
    background: linear-gradient(180deg, #0c4a6e 0%, #075985 50%, #0284c7 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.skin-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8fafc" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
}

.skin-footer .container {
    position: relative;
    z-index: 1;
}

.skin-footer a {
    color: var(--sky-blue-light);
    transition: all var(--transition-base);
}

.skin-footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
}

/* ========================================
   13. PAGE TITLE ANIMATIONS
   ======================================== */
.page-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ========================================
   14. UTILITY CLASSES
   ======================================== */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   15. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-blue-dark);
        border-radius: var(--radius-xl);
        padding: var(--spacing-md);
        margin-top: var(--spacing-sm);
        box-shadow: var(--shadow-xl);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: var(--spacing-xs);
    }
    
    .dnn-logo div {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .modern-card {
        padding: var(--spacing-md);
    }
    
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

/* ========================================
   16. LOADING STATES
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ========================================
   17. SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue-hover);
}

/* ========================================
   18. CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* ========================================
   19. OVERRIDE EXISTING STYLES
   ======================================== */
.skin-header {
    border-bottom: none !important;
    border-image: none !important;
}

.body-top-bar {
    background: var(--gradient-primary) !important;
}

.bg-blue-super-dark {
    background: var(--gradient-primary) !important;
}

/* ========================================
   20. PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .skin-footer,
    .scroll-to-top {
        display: none;
    }
    
    .modern-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   21. MODERN MENU NAVIGATION
   ======================================== */

/* Modern Navbar Container */
.modern-navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Nav Items */
.modern-nav-item {
    position: relative;
    list-style: none;
}

/* Modern Nav Links */
.modern-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.modern-nav-link .link-text {
    position: relative;
    z-index: 2;
}

/* Hover Effect with Gradient Background */
.modern-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.modern-nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.modern-nav-link:hover::before {
    opacity: 1;
}

/* Active State */
.modern-nav-link.active,
.modern-nav-link.modern-active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Active Parent (Breadcrumb) */
.modern-nav-link.active-parent {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dropdown Toggle Icon */
.modern-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.modern-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(180deg);
}

.modern-dropdown-toggle i {
    font-size: 14px;
}

/* Modern Dropdown Menu */
.modern-dropdown {
    min-width: 220px;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Items */
.modern-dropdown .nav-link,
.modern-dropdown .modern-nav-link {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--dark-gray) !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.25s ease-in-out;
}

.modern-dropdown .nav-link::before,
.modern-dropdown .modern-nav-link::before {
    display: none;
}

.modern-dropdown .nav-link:hover,
.modern-dropdown .modern-nav-link:hover {
    background: var(--gradient-primary);
    color: #ffffff !important;
    transform: translateX(5px);
    box-shadow: none;
}

.modern-dropdown .nav-link.active,
.modern-dropdown .modern-nav-link.active,
.modern-dropdown .modern-nav-link.modern-active {
    background: var(--primary-blue-light);
    color: #ffffff !important;
    box-shadow: none;
}

/* Disabled State */
.modern-nav-link.disabled {
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.modern-nav-link.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile Navigation Toggle Button */
#navbar-toggler {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

#navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#navbar-toggler i {
    font-size: 1.25rem;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .modern-navbar-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
    }
    
    .modern-nav-item {
        width: 100%;
    }
    
    .modern-nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: 0;
        justify-content: space-between;
    }
    
    .modern-dropdown {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    
    .modern-dropdown .nav-link,
    .modern-dropdown .modern-nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding-left: 2rem;
    }
    
    .modern-dropdown .nav-link:hover,
    .modern-dropdown .modern-nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }
    
    .modern-dropdown-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .modern-nav-link {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .modern-nav-link {
        font-size: 1.05rem;
        padding: 0.875rem 1.5rem;
    }
    
    .modern-navbar-nav {
        gap: 0.75rem;
    }
}
