/* Frutiger Aero Theme CSS Framework */
/* Inspired by Windows Vista/Aero aesthetic with modern glass morphism */

:root {
    /* Frutiger Aero Color Palette */
    --aero-primary: #00B4D8;
    --aero-secondary: #0077B6;
    --aero-accent: #90E0EF;
    --aero-light: #CAF0F8;
    --aero-white: rgba(255, 255, 255, 0.9);
    --aero-glass: rgba(255, 255, 255, 0.15);
    --aero-glass-border: rgba(255, 255, 255, 0.25);
    --aero-shadow: rgba(0, 180, 216, 0.3);
    --aero-glow: rgba(144, 224, 239, 0.6);
    
    /* Glass morphism properties */
    --glass-backdrop: blur(20px) saturate(180%);
    --glass-border-radius: 16px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-glow: 0 0 20px var(--aero-glow);
}

/* Core glass container styles */
.aero-glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(0, 180, 216, 0.1) 25%,
        rgba(144, 224, 239, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 75%,
        rgba(0, 180, 216, 0.05) 100%);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--aero-glass-border);
    border-radius: var(--glass-border-radius);
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.aero-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    z-index: 1;
}

.aero-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced glass for main containers */
.aero-glass-enhanced {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 180, 216, 0.15) 25%,
        rgba(144, 224, 239, 0.12) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        rgba(0, 180, 216, 0.08) 100%);
    backdrop-filter: blur(25px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 24px 80px var(--aero-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Aero button styles */
.aero-button {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(0, 180, 216, 0.2) 50%,
        rgba(144, 224, 239, 0.15) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.aero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.aero-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 180, 216, 0.25) 50%,
        rgba(144, 224, 239, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 30px var(--aero-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.aero-button:hover::before {
    left: 100%;
}

.aero-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Navigation glass styling */
.aero-nav {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%,
        rgba(0, 180, 216, 0.12) 30%,
        rgba(144, 224, 239, 0.1) 60%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.12),
        0 20px 70px var(--aero-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.aero-nav-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 180, 216, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.aero-nav-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 180, 216, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 20px var(--aero-glow);
    transform: translateY(-1px);
}

.aero-nav-item.active {
    background: linear-gradient(135deg, 
        rgba(0, 180, 216, 0.25) 0%,
        rgba(144, 224, 239, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 25px var(--aero-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Content window styling */
.aero-window {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.22) 0%,
        rgba(0, 180, 216, 0.15) 20%,
        rgba(144, 224, 239, 0.12) 40%,
        rgba(255, 255, 255, 0.18) 60%,
        rgba(0, 180, 216, 0.1) 80%,
        rgba(255, 255, 255, 0.16) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.18),
        0 32px 100px var(--aero-shadow),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.aero-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    z-index: 1;
}

/* Window header with controls */
.aero-window-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 180, 216, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px 22px 0 0;
    padding: 8px 16px; /* Reduced from 16px to 8px for thinner header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    height: 32px; /* Fixed height for consistent thin appearance */
    min-height: 32px;
}

.aero-window-controls {
    display: flex;
    gap: 4px; /* Smaller gap for smaller buttons */
}

.aero-window-dot {
    width: 18px !important; /* Smaller rectangular button */
    height: 14px !important; /* Reduced height for smaller rectangle */
    border-radius: 2px !important; /* Slightly rounded corners for modern Windows look */
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 8px !important; /* Smaller font for smaller buttons */
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 240, 240, 0.8) 50%,
        rgba(220, 220, 220, 0.7) 100%) !important;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.aero-window-dot.minimize {
    border-color: rgba(0, 0, 0, 0.25);
}

.aero-window-dot.minimize::before {
    content: '−';
    font-size: 14px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
}

.aero-window-dot.maximize {
    border-color: rgba(0, 0, 0, 0.25);
}

.aero-window-dot.maximize::before {
    content: '□';
    font-size: 11px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
}

.aero-window-dot.close {
    border-color: rgba(0, 0, 0, 0.25);
}

.aero-window-dot.close::before {
    content: '×';
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
}

.aero-window-dot:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(245, 245, 245, 0.9) 50%,
        rgba(230, 230, 230, 0.8) 100%);
    transform: translateY(-0.5px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.aero-window-dot:active {
    background: linear-gradient(180deg, 
        rgba(200, 200, 200, 0.8) 0%,
        rgba(220, 220, 220, 0.7) 50%,
        rgba(240, 240, 240, 0.6) 100%);
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/* Window title styling for thin header */
.aero-window-header .aero-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Form elements */
.aero-input {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(0, 180, 216, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aero-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.aero-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 20px var(--aero-glow),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Text styling */
.aero-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.aero-text-secondary {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes aeroFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-3px) translateX(2px);
    }
    50% {
        transform: translateY(-6px) translateX(4px);
    }
    75% {
        transform: translateY(-3px) translateX(2px);
    }
}

@keyframes aeroGlow {
    0%, 100% {
        box-shadow: 
            0 16px 50px rgba(0, 0, 0, 0.18),
            0 32px 100px var(--aero-shadow),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.22),
            0 40px 120px var(--aero-shadow),
            inset 0 2px 0 rgba(255, 255, 255, 0.5);
    }
}

.aero-float {
    animation: aeroFloat 8s ease-in-out infinite;
}

.aero-glow-pulse {
    animation: aeroGlow 6s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .aero-glass, .aero-window {
        border-radius: 12px;
    }
    
    .aero-window-header {
        padding: 12px 16px;
        border-radius: 10px 10px 0 0;
    }
    
    .aero-button {
        padding: 10px 20px;
        border-radius: 10px;
    }
}

/* Integration with existing layout */
.main-layout-container {
    background: transparent;
}

.sidebar.aero-nav {
    margin: 20px;
    padding: 20px;
}

.content-window.aero-window {
    margin: 20px;
}

.content-window.aero-window .dynamic-content {
    background: transparent;
    padding: 20px;
    border-radius: 0 0 20px 20px;
}

/* Enhanced page titles with Aero styling */
.aero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff !important; /* Pure white text */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important; /* Stronger shadow for contrast */
    margin-bottom: 30px;
    text-align: center;
}

.aero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

/* Quick nav enhancement */
.quick-nav.aero-glass {
    margin: 20px;
    padding: 15px;
}

.quick-nav.aero-glass .nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-nav.aero-glass .nav-item {
    margin: 0 5px;
}

.quick-nav.aero-glass .aero-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 60px;
}

.quick-nav.aero-glass .nav-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.quick-nav.aero-glass .nav-text {
    font-size: 0.8rem;
}

/* Navigation sidebar enhancements */
.sidebar.aero-nav .logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        rgba(0, 180, 216, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sidebar.aero-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar.aero-nav nav li {
    margin-bottom: 8px;
}

.sidebar.aero-nav .utilities {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
}

.sidebar.aero-nav .utilities .aero-nav-item {
    padding: 12px;
    margin: 4px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

/* Override any existing dark backgrounds to showcase glass morphism */
.home-page, .main-content-panel, .dynamic-content {
    background: transparent !important;
}

/* Override old circular window buttons completely */
.window-dot {
    display: none !important; /* Hide old circular buttons */
}

/* Force hide any remaining circular elements */
.window-dot,
.window-control.window-dot,
div.window-dot,
span.window-dot {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 0 !important;
}

.aero-window-dot {
    display: flex !important; /* Ensure new rectangular buttons show */
}

/* Video container override - remove dark background */
.home-page .video-container,
.video-container,
div[role="img"][aria-label*="video"] {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    overflow: visible !important;
    border-radius: 0 !important;
}

.home-page .video-showcase,
.video-showcase {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
}

.home-page .video-container::before,
.home-page .video-container::after,
.video-container::before,
.video-container::after {
    display: none !important;
    content: none !important;
}

.home-page .video-container > div,
.video-container > div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.home-page .video-container iframe,
.video-container iframe {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure proper text visibility on glass surfaces */
.aero-glass .aero-text,
.aero-window .aero-text,
.aero-nav .aero-text {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Glass surface content styling */
.aero-glass > * {
    position: relative;
    z-index: 2;
}

/* Mobile navigation improvements */
@media (max-width: 1024px) {
    .sidebar.aero-nav {
        margin: 10px;
        padding: 15px;
    }
    
    .content-window.aero-window {
        margin: 10px;
    }
    
    .quick-nav.aero-glass {
        margin: 10px;
        padding: 10px;
    }
    
    .aero-title {
        font-size: 2rem;
    }
    
    .aero-subtitle {
        font-size: 1.5rem;
    }
    
    .aero-window-header {
        padding: 6px 12px; /* Even thinner on mobile */
        height: 28px;
        min-height: 28px;
        border-radius: 10px 10px 0 0;
    }
    
    .aero-window-header .aero-text {
        font-size: 12px !important;
    }
    
    .aero-window-dot {
        width: 16px !important; /* Smaller on mobile */
        height: 12px !important;
        font-size: 7px !important;
    }
}