/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Material Design Colors */
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --accent-color: #ff4081;
    --accent-dark: #f50057;

    /* Background Colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;

    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-disabled: #9e9e9e;
    --text-white: #ffffff;

    /* Border Colors */
    --border-color: #e0e0e0;
    --divider-color: #eeeeee;

    /* Shadow */
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadow-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);

    /* Spacing - More Spacious */
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Layout - Compact */
    --header-height: 56px;
    --banner-height: 48px;
    --sidebar-width: 240px;
    --border-radius: 6px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
body.dark-theme {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-disabled: #6e6e6e;
    --border-color: #333333;
    --divider-color: #2c2c2c;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* ============================================
   ULTRA MODERN ANIMATED BACKGROUND
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(103, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb10 100%);
    animation: gradientShift 15s ease infinite;
}

body.dark-theme::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(103, 126, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #667eea25 0%, #764ba225 50%, #f093fb20 100%);
}

@keyframes gradientShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
    66% {
        transform: scale(0.95) rotate(-5deg);
        opacity: 0.9;
    }
}

#neuralNetwork {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity var(--transition-normal);
}

body.dark-theme #neuralNetwork {
    opacity: 0.5;
}

/* Wszystkie główne elementy interfejsu nad tłem */
.app-header,
.sidebar,
.main-content,
.modal,
.fullscreen-viewer,
.toast-container {
    position: relative;
    z-index: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-disabled);
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: all var(--transition-normal);
}

body.dark-theme .app-header {
    background: rgba(30, 30, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 0;
}

.app-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.app-title .material-icons {
    font-size: 28px;
    color: var(--primary-color);
}

.header-center {
    flex: 1;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: 1.5px solid rgba(103, 126, 234, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .search-input {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(103, 126, 234, 0.3);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(103, 126, 234, 0.6);
    box-shadow: 0 0 0 4px rgba(103, 126, 234, 0.15), 0 4px 16px rgba(103, 126, 234, 0.2);
    transform: translateY(-2px);
}

body.dark-theme .search-input:focus {
    background: rgba(40, 40, 40, 0.9);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   AUTHOR BANNER
   ============================================ */
.author-banner {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg,
        rgba(103, 126, 234, 0.95) 0%,
        rgba(118, 75, 162, 0.95) 100%
    );
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: var(--spacing-md);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.author-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: white;
}

.author-banner-content .material-icons {
    font-size: 20px;
}

.author-banner-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.icon-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

body.dark-theme .icon-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button .material-icons {
    font-size: 24px;
}

/* Ripple Effect */
.icon-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.icon-button:active::after {
    width: 100px;
    height: 100px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: calc(var(--header-height) + var(--banner-height));
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
    z-index: 900;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05);
}

body.dark-theme .sidebar {
    background: rgba(30, 30, 30, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--divider-color);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-2);
}

.profile-avatar .material-icons {
    font-size: 32px;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-lg);
    margin: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border-radius: 12px;
}

.nav-item:hover {
    background: rgba(103, 126, 234, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--primary-color);
    background: linear-gradient(
        135deg,
        rgba(103, 126, 234, 0.15),
        rgba(118, 75, 162, 0.15)
    );
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.2);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(103, 126, 234, 0.5);
}

.nav-item .material-icons {
    font-size: 24px;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: var(--divider-color);
    margin: var(--spacing-md) var(--spacing-lg);
}

.nav-section-title {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--divider-color);
}

.stats-panel {
    display: flex;
    gap: var(--spacing-md);
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(103, 126, 234, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(103, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(103, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.2);
}

.stat-item .material-icons {
    font-size: 28px;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: calc(var(--header-height) + var(--banner-height));
    padding: var(--spacing-xl);
    min-height: calc(100vh - var(--header-height) - var(--banner-height));
    transition: margin-left var(--transition-normal);
}

.main-content.expanded {
    margin-left: 0;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .filter-bar {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-chips {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.chip {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    border: 1.5px solid rgba(103, 126, 234, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .chip {
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(103, 126, 234, 0.3);
}

.chip:hover {
    background: rgba(103, 126, 234, 0.15);
    border-color: rgba(103, 126, 234, 0.5);
    transform: translateY(-2px);
}

.chip.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(103, 126, 234, 0.4);
    transform: translateY(-2px);
}

.chip .material-icons {
    font-size: 18px;
}

.view-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tool-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

body.dark-theme .tool-card {
    background: rgba(40, 40, 40, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        rgba(103, 126, 234, 0.5),
        rgba(118, 75, 162, 0.5),
        rgba(59, 130, 246, 0.5),
        rgba(16, 185, 129, 0.5)
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease infinite;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(103, 126, 234, 0.3);
    border-color: rgba(103, 126, 234, 0.6);
    animation: float 3s ease-in-out infinite;
}

body.dark-theme .tool-card:hover {
    box-shadow: 0 20px 60px rgba(103, 126, 234, 0.5);
}

.tool-card.favorite .tool-thumbnail::before {
    content: 'star';
    font-family: 'Material Icons';
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ffd700;
    font-size: 28px;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.tool-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg,
        rgba(103, 126, 234, 0.9),
        rgba(118, 75, 162, 0.9),
        rgba(59, 130, 246, 0.9)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tool-thumbnail::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.tool-thumbnail .material-icons {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-thumbnail .material-icons {
    transform: scale(1.15) rotate(5deg);
}

.tool-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.tool-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.tool-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.tool-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 12px;
    color: var(--text-disabled);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--divider-color);
}

.tool-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-meta-item .material-icons {
    font-size: 16px;
}

.tool-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tool-actions .icon-button {
    flex: 1;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
}

.tool-actions .icon-button:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.empty-icon {
    font-size: 120px !important;
    color: var(--text-disabled);
    opacity: 0.5;
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
}

.empty-state code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* ============================================
   MODAL (WINDOWED MODE)
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-fast);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.dark-theme .modal-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--divider-color);
    gap: var(--spacing-md);
}

.modal-title-section {
    flex: 1;
    min-width: 0;
}

#modalTitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader p {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-footer {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--divider-color);
}

.tool-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.tool-info .material-icons {
    font-size: 18px;
}

/* ============================================
   FULLSCREEN VIEWER
   ============================================ */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.fullscreen-viewer.active {
    display: flex;
}

.fullscreen-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transition: transform var(--transition-normal);
}

.fullscreen-viewer.hide-ui .fullscreen-controls {
    transform: translateY(-100%);
}

.fullscreen-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.fullscreen-info span {
    font-size: 12px;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

.fullscreen-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.fullscreen-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.fullscreen-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.dropdown-menu {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    min-width: 220px;
    padding: var(--spacing-sm) 0;
    z-index: 1500;
    animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

.dropdown-item .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #323232;
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-4);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: var(--primary-color);
}

.toast .material-icons {
    font-size: 24px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

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

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    .header-content {
        padding: 0 var(--spacing-sm);
    }

    .app-title span:last-child {
        display: none;
    }

    .search-container {
        max-width: 300px;
    }

    .main-content {
        padding: var(--spacing-md);
    }

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

    .modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .filter-bar {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
    }

    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }

    .container {
        padding: 20px 16px;
        padding-top: 80px;
        margin-left: 0;
    }

    header {
        padding: 40px 24px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .logo svg {
        width: 80px;
        height: 80px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
    }

    .majestic-deer {
        width: 80px;
        height: 80px;
        bottom: 16px;
        right: 16px;
        opacity: 0.15;
    }

    .footer-logo-box {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-right .icon-button:not(#themeToggle):not(#menuToggle) {
        display: none;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .profile-avatar .material-icons {
        font-size: 28px;
    }

    .tool-card {
        border-radius: var(--border-radius);
    }

    .toast {
        min-width: calc(100vw - 32px);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

.slide-up {
    animation: slideUp var(--transition-normal);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 16px 20px 8px;
}

/* Adjust container for sidebar on desktop */
@media (min-width: 769px) {
    .container {
        margin-left: 260px;
        max-width: calc(1400px - 260px);
    }
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */
header {
    text-align: center;
    margin-bottom: 16px;
    padding: 20px 24px;
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(103, 126, 234, 0.3),
        inset 0 -1px 0 rgba(16, 185, 129, 0.2),
        0 0 40px rgba(103, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 126, 234, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(103, 126, 234, 1) 25%,
        rgba(16, 185, 129, 1) 50%,
        rgba(240, 147, 251, 1) 75%,
        transparent 100%
    );
    box-shadow:
        0 0 20px rgba(103, 126, 234, 0.8),
        0 0 40px rgba(103, 126, 234, 0.4);
    animation: energyFlow 4s linear infinite;
}

@keyframes energyFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.logo {
    margin-bottom: 8px;
    filter: drop-shadow(var(--shadow-1));
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #10b981 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 8px;
}

#appCount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(16, 185, 129, 0.08));
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(98, 0, 238, 0.12);
}

/* ============================================
   APPS GRID
   ============================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

/* Material Design 3 Card - Compact & Modern */
.app-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    box-shadow: var(--shadow-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
    border-color: rgba(98, 0, 238, 0.2);
}

/* Special styling for Laboratorium Fizyka card */
.app-card[data-category="Laboratorium Fizyka"] {
    border: 2px solid rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 251, 235, 1) 100%);
}

.app-card[data-category="Laboratorium Fizyka"]::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
    height: 4px;
}

.app-card[data-category="Laboratorium Fizyka"]:hover {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.app-card[data-category="Laboratorium Fizyka"] .app-category {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    color: #d97706;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.app-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(16, 185, 129, 0.1));
}

.app-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
}

.app-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.app-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(98, 0, 238, 0.08);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Visibility Toggle Button */
.visibility-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    box-shadow: var(--shadow-1);
}

.visibility-toggle:hover {
    background: rgba(98, 0, 238, 0.08);
    transform: scale(1.1);
    box-shadow: var(--shadow-2);
}

.visibility-toggle:active {
    transform: scale(0.95);
}

/* Hidden state for app cards */
.app-card.hidden-app {
    opacity: 0.5;
    filter: grayscale(50%);
    pointer-events: none;
}

.app-card.hidden-app .visibility-toggle {
    pointer-events: all;
    background: rgba(176, 0, 32, 0.08);
    border-color: #F2B8B5;
    color: #F2B8B5;
}

.app-card.hidden-app .visibility-toggle:hover {
    background: rgba(176, 0, 32, 0.16);
}

.hidden-label {
    position: absolute;
    top: 40px;
    right: 8px;
    background: rgba(176, 0, 32, 0.08);
    color: #F2B8B5;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 500;
    z-index: 10;
    border: 1px solid rgba(176, 0, 32, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 16px 20px 12px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.footer p {
    margin: 6px 0;
    line-height: 1.4;
}

.footer-logo-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(16, 185, 129, 0.08));
    border-radius: 12px;
    border: 2px solid rgba(98, 0, 238, 0.12);
    margin-bottom: 12px;
    box-shadow: var(--shadow-1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand-title {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Majestic Floating Deer */
.majestic-deer {
    position: fixed;
    bottom: 12px;
    right: 12px;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 999;
    animation: floatDeer 6s ease-in-out infinite;
    filter: drop-shadow(var(--shadow-2));
}

@keyframes floatDeer {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-disabled);
    font-size: 1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu:hover {
    box-shadow: var(--shadow-3);
    transform: scale(1.05);
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   SIDEBAR ENHANCEMENTS
   ============================================ */
.sidebar-header {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid var(--divider-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(16, 185, 129, 0.08));
}

.sidebar-header svg {
    filter: drop-shadow(var(--shadow-1));
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.sidebar-header svg:hover {
    transform: scale(1.05);
}

.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-menu {
    flex: 1;
    padding: 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 2px 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 3px 3px 0;
}

/* Ripple effect */
.sidebar-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(98, 0, 238, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.sidebar-link:active::after {
    width: 300px;
    height: 300px;
}

.sidebar-link:hover {
    background: rgba(98, 0, 238, 0.08);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: rgba(98, 0, 238, 0.12);
    font-weight: 500;
    color: var(--primary-color);
}

.sidebar-link.active::before {
    opacity: 1;
}

/* Special styling for Laboratorium Fizyka - Yellow-Black Radiological Theme */
.sidebar-link[data-filter="Laboratorium Fizyka"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.sidebar-link[data-filter="Laboratorium Fizyka"]:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.12));
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.sidebar-link[data-filter="Laboratorium Fizyka"].active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.2));
    border-color: rgba(255, 193, 7, 0.6);
    color: #d97706;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.sidebar-link[data-filter="Laboratorium Fizyka"] .sidebar-icon {
    color: #f59e0b;
    animation: pulse-radiation 2s ease-in-out infinite;
}

@keyframes pulse-radiation {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.8));
    }
}

.sidebar-link[data-filter="Laboratorium Fizyka"]::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.sidebar-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-link:hover .sidebar-icon {
    transform: scale(1.1);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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