/* ====== APPLE LIQUID GLASS HOME DESKTOP ====== */
/* ============================================
   APPLE LIQUID GLASS DESIGN SYSTEM
   True macOS Tahoe / iOS 26 Aesthetics
   ============================================ */

:root {
    --apple-glass-bg: rgba(255, 255, 255, 0.12);
    --apple-glass-bg-hover: rgba(255, 255, 255, 0.18);
    --apple-glass-border: rgba(255, 255, 255, 0.25);
    --apple-glass-highlight: rgba(255, 255, 255, 0.45);
    --apple-glass-shadow: rgba(0, 0, 0, 0.12);
    --apple-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --apple-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Segmented Control --- */
.mac-subtab-bar {
    display: flex;
    justify-content: center;
    padding: 12px 20px 0;
    position: relative;
    z-index: 5;
}

.mac-segmented-control {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mac-segment {
    padding: 7px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mac-segment:hover {
    color: #334155;
}

.mac-segment.active {
    background: white;
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mac-segment i {
    font-size: 14px;
}

/* --- Visibility --- */
.home-subtab-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.home-subtab-content.hidden {
    display: none;
}

#subtab-desktop {
    height: calc(100% - 50px);
    min-height: calc(100vh - 130px);
}

/* --- Desktop Environment --- */
.mac-desktop-environment {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 120px);
    overflow: hidden;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================
   VIBRANT macOS WALLPAPER
   Inspired by macOS Sequoia/Tahoe
   ============================================ */
.mac-wallpaper {
    position: absolute;
    inset: -15%;
    z-index: 0;
    background:
        /* Sıcak güneş parıltısı */
        radial-gradient(ellipse at 75% 75%, rgba(255, 149, 0, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 60%, rgba(255, 94, 58, 0.35) 0%, transparent 40%),
        /* Soğuk mavi derinlik */
        radial-gradient(ellipse at 15% 30%, rgba(0, 122, 255, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(88, 86, 214, 0.35) 0%, transparent 45%),
        /* Turkuaz ve yeşil tonları */
        radial-gradient(ellipse at 50% 10%, rgba(48, 209, 88, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 40%, rgba(90, 200, 250, 0.25) 0%, transparent 40%),
        /* Magenta vurgu */
        radial-gradient(ellipse at 20% 85%, rgba(191, 90, 242, 0.3) 0%, transparent 40%),
        /* Temel gradient */
        linear-gradient(145deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    background-size: 250% 250%;
    animation: appleWallpaperFlow 30s ease-in-out infinite alternate;
    will-change: background-position;
}

@keyframes appleWallpaperFlow {
    0% {
        background-position: 0% 0%;
    }

    20% {
        background-position: 30% 20%;
    }

    40% {
        background-position: 60% 40%;
    }

    60% {
        background-position: 40% 70%;
    }

    80% {
        background-position: 20% 50%;
    }

    100% {
        background-position: 50% 30%;
    }
}

/* Subtle film grain for realism */
.mac-wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
}

/* ============================================
   DESKTOP CLOCK (Apple-style thin typography)
   ============================================ */
.mac-desktop-clock {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 2;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

.mac-clock-time {
    font-size: 60px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -3px;
    line-height: 1;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

.mac-clock-date {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

/* ============================================
   APP GRID
   ============================================ */
.mac-app-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 24px;
    padding: 80px 60px 140px;
    align-content: start;
    max-width: 750px;
    margin: 0 auto;
}

/* ============================================
   LIQUID GLASS APP ICON
   True Apple translucency
   ============================================ */
.mac-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mac-app-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--apple-glass-bg);
    backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    border: 0.5px solid var(--apple-glass-border);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 0.5px 0 rgba(255, 255, 255, 0.3) inset,
        0 -0.5px 0 rgba(0, 0, 0, 0.05) inset;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.95);
    transition:
        transform 0.4s var(--apple-spring),
        box-shadow 0.3s var(--apple-smooth),
        background 0.3s ease;
    will-change: transform;
    overflow: hidden;
}

/* Top specular highlight - thin line of light */
.mac-app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 100%);
    border-radius: 16px 16px 50% 50%;
    pointer-events: none;
}

/* Bottom inner shadow for depth */
.mac-app-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.06) 0%,
            transparent 100%);
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

/* --- Subtle Color Tints (very transparent) --- */
.mac-app-icon.gradient-blue {
    background: rgba(0, 122, 255, 0.18);
    color: rgba(100, 190, 255, 0.95);
}

.mac-app-icon.gradient-green {
    background: rgba(48, 209, 88, 0.16);
    color: rgba(100, 230, 140, 0.95);
}

.mac-app-icon.gradient-purple {
    background: rgba(175, 82, 222, 0.18);
    color: rgba(200, 150, 255, 0.95);
}

.mac-app-icon.gradient-orange {
    background: rgba(255, 149, 0, 0.18);
    color: rgba(255, 190, 80, 0.95);
}

.mac-app-icon.gradient-pink {
    background: rgba(255, 45, 85, 0.16);
    color: rgba(255, 120, 150, 0.95);
}

.mac-app-icon.gradient-cyan {
    background: rgba(90, 200, 250, 0.16);
    color: rgba(140, 220, 255, 0.95);
}

.mac-app-icon.gradient-red {
    background: rgba(255, 59, 48, 0.16);
    color: rgba(255, 130, 120, 0.95);
}

.mac-app-icon.gradient-indigo {
    background: rgba(88, 86, 214, 0.18);
    color: rgba(150, 148, 255, 0.95);
}

.mac-app-icon.gradient-teal {
    background: rgba(0, 199, 190, 0.16);
    color: rgba(100, 230, 220, 0.95);
}

.mac-app-icon.gradient-amber {
    background: rgba(255, 204, 0, 0.16);
    color: rgba(255, 220, 80, 0.95);
}

.mac-app-icon.gradient-emerald {
    background: rgba(52, 199, 89, 0.16);
    color: rgba(100, 220, 150, 0.95);
}

.mac-app-icon.gradient-rose {
    background: rgba(255, 55, 95, 0.16);
    color: rgba(255, 130, 160, 0.95);
}

/* Hover - subtle lift and glow */
.mac-app-card:hover .mac-app-icon {
    transform: scale(1.08) translateY(-3px);
    background: var(--apple-glass-bg-hover);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0.5px 0 rgba(255, 255, 255, 0.4) inset,
        0 -0.5px 0 rgba(0, 0, 0, 0.05) inset;
}

.mac-app-card:hover .mac-app-icon.gradient-blue {
    background: rgba(0, 122, 255, 0.28);
}

.mac-app-card:hover .mac-app-icon.gradient-green {
    background: rgba(48, 209, 88, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-purple {
    background: rgba(175, 82, 222, 0.28);
}

.mac-app-card:hover .mac-app-icon.gradient-orange {
    background: rgba(255, 149, 0, 0.28);
}

.mac-app-card:hover .mac-app-icon.gradient-pink {
    background: rgba(255, 45, 85, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-cyan {
    background: rgba(90, 200, 250, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-red {
    background: rgba(255, 59, 48, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-indigo {
    background: rgba(88, 86, 214, 0.28);
}

.mac-app-card:hover .mac-app-icon.gradient-teal {
    background: rgba(0, 199, 190, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-amber {
    background: rgba(255, 204, 0, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-emerald {
    background: rgba(52, 199, 89, 0.25);
}

.mac-app-card:hover .mac-app-icon.gradient-rose {
    background: rgba(255, 55, 95, 0.25);
}

/* Active press */
.mac-app-card:active .mac-app-icon {
    transform: scale(0.94);
    transition-duration: 0.1s;
}

.mac-app-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 10.5px;
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

/* ============================================
   macOS DOCK - True Frosted Glass
   ============================================ */
.mac-dock-container {
    position: absolute;
    bottom: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    padding: 0 20px;
}

.mac-dock {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.12),
        0 0.5px 0 rgba(255, 255, 255, 0.35) inset;
}

.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 3px;
    align-self: center;
    border-radius: 1px;
}

.dock-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s var(--apple-spring);
    transform-origin: bottom center;
    will-change: transform;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Dock icon top highlight */
.dock-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

/* Dock Tooltip */
.dock-icon .dock-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(40, 40, 40, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.2px;
}

.dock-icon:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dock Magnification */
.dock-icon:hover {
    transform: scale(1.4) translateY(-10px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Dock Clock */
.dock-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    min-width: 44px;
    user-select: none;
}

.dock-clock-time {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mac-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 20px;
        padding: 60px 20px 120px;
    }

    .mac-app-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }

    .mac-app-title {
        font-size: 10px;
    }

    .dock-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .mac-clock-time {
        font-size: 44px;
    }
}

/* ============================================
   FOLDER SYSTEM - iOS Style
   ============================================ */


/* ============================================
   FOLDER NAMING MODAL (Apple-style)
   ============================================ */
.folder-name-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.folder-name-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.folder-name-modal-overlay .modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.folder-name-modal {
    position: relative;
    z-index: 1;
    width: 300px;
    background: rgba(44, 44, 46, 0.92);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 24px 20px 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: scale(0.85) translateY(10px);
    transition: transform 0.3s var(--apple-spring);
    text-align: center;
}

.folder-name-modal-overlay.open .folder-name-modal {
    transform: scale(1) translateY(0);
}

.folder-name-modal h3 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.folder-name-modal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0 0 16px;
    font-weight: 400;
}

.folder-name-modal input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.folder-name-modal input:focus {
    border-color: rgba(0, 122, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.folder-name-modal input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.folder-name-modal-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.folder-name-modal-buttons button {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.folder-name-modal-buttons .btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.folder-name-modal-buttons .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.folder-name-modal-buttons .btn-confirm {
    background: rgba(0, 122, 255, 0.85);
    color: white;
}

.folder-name-modal-buttons .btn-confirm:hover {
    background: rgba(0, 122, 255, 1);
}

/* Folder card on desktop grid */
.mac-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mac-folder-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 0.5px 0 rgba(255, 255, 255, 0.3) inset;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    gap: 3px;
    transition: transform 0.4s var(--apple-spring), box-shadow 0.3s ease;
    will-change: transform;
    overflow: hidden;
}

.mac-folder-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 100%);
    border-radius: 16px 16px 50% 50%;
    pointer-events: none;
    z-index: 1;
}

/* Mini app icons inside folder preview */
.folder-mini-icon {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.mac-folder-card:hover .mac-folder-icon {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0.5px 0 rgba(255, 255, 255, 0.4) inset;
}

.mac-folder-card:active .mac-folder-icon {
    transform: scale(0.94);
    transition-duration: 0.1s;
}

.mac-folder-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 10.5px;
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    max-width: 80px;
    cursor: text;
    letter-spacing: 0.1px;
}

/* Drag feedback */
.mac-app-card.dragging,
.mac-folder-card.dragging {
    opacity: 0.4;
    transform: scale(0.9);
}

.mac-app-card.drag-over .mac-app-icon,
.mac-folder-card.drag-over .mac-folder-icon {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.6), 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* ============================================
   OPEN FOLDER OVERLAY (iOS-style expand)
   ============================================ */
.folder-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.folder-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.folder-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.folder-expanded {
    position: relative;
    z-index: 1;
    width: 320px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 24px 16px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
    transform: scale(0.5);
    transition: transform 0.35s var(--apple-spring);
}

.folder-overlay.open .folder-expanded {
    transform: scale(1);
}

.folder-expanded-title {
    text-align: center;
    margin-bottom: 16px;
}

.folder-expanded-title input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
    width: 80%;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.folder-expanded-title input:focus {
    border-bottom-color: rgba(0, 122, 255, 0.7);
}

.folder-expanded-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    justify-items: center;
}

.folder-expanded-grid .mac-app-card .mac-app-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 14px;
}

.folder-expanded-grid .mac-app-card .mac-app-title {
    font-size: 9.5px;
    max-width: 60px;
}

/* Folder action buttons */
.folder-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.folder-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.folder-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.folder-action-btn.danger:hover {
    background: rgba(255, 59, 48, 0.25);
    color: #ff6b6b;
}

/* ====== Content Area Height Fix ====== */
/* Fix: Ensure content-area fills height for desktop */
.tab-content.active .content-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ====== DASHBOARD ====== */
.dashboard-container {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    padding: 32px;
}

.dashboard-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 165, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(123, 97, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dash-welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.dash-welcome-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #00D9A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-welcome-content p {
    color: #8b949e;
    font-size: 15px;
}

.dash-welcome-actions {
    display: flex;
    gap: 12px;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dash-btn-primary {
    background: linear-gradient(135deg, #00D9A5 0%, #00b894 100%);
    color: #0a0e14;
    box-shadow: 0 4px 12px rgba(0, 217, 165, 0.25);
}

.dash-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 165, 0.35);
}

.dash-btn-secondary {
    background: #151c24;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-btn-secondary:hover {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.2);
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.dash-stat-card {
    position: relative;
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.dash-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
}

.dash-stat-icon.revenue {
    background: rgba(0, 217, 165, 0.15);
    color: #00D9A5;
}

.dash-stat-icon.orders {
    background: rgba(123, 97, 255, 0.15);
    color: #7B61FF;
}

.dash-stat-icon.inventory {
    background: rgba(255, 179, 71, 0.15);
    color: #FFB347;
}

.dash-stat-icon.customers {
    background: rgba(78, 205, 196, 0.15);
    color: #4ECDC4;
}

.dash-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-stat-label {
    font-size: 12px;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dash-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.dash-stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.dash-stat-change.positive {
    color: #00D9A5;
}

.dash-stat-change.negative {
    color: #FF6B6B;
}

.dash-charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.dash-chart-card {
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.dash-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 0;
}

.dash-chart-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #ffffff;
}

.dash-chart-subtitle {
    font-size: 12px;
    color: #6e7681;
}

.dash-chart-tabs {
    display: flex;
    background: #151c24;
    border-radius: 6px;
    padding: 4px;
}

.dash-chart-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: #6e7681;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dash-chart-tab.active {
    background: #1a222d;
    color: #ffffff;
}

.dash-chart-tab:hover:not(.active) {
    color: #8b949e;
}

.dash-chart-body {
    padding: 24px;
    height: 300px;
}

.dash-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b949e;
}

.dash-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.dash-legend-value {
    color: #6e7681;
    margin-left: auto;
}

.dash-tables-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.dash-table-card {
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.dash-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-table-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #ffffff;
}

.dash-table-subtitle {
    font-size: 12px;
    color: #6e7681;
}

.dash-table-actions {
    display: flex;
    gap: 8px;
}

.dash-table-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    background: #151c24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dash-table-action-btn:hover {
    background: #1f2937;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.dash-table-body {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table thead {
    background: #151c24;
}

.dash-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e7681;
    text-align: left;
    white-space: nowrap;
}

.dash-table td {
    padding: 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    color: #ffffff;
}

.dash-table tbody tr {
    background: #0f1419;
    transition: background 0.15s ease;
}

.dash-table tbody tr:hover {
    background: #151c24;
}

.dash-order-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: #00D9A5;
}

.dash-customer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-customer img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dash-amount {
    font-weight: 600;
}

.dash-status {
    display: inline-flex;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-status.completed {
    background: rgba(0, 217, 165, 0.15);
    color: #00D9A5;
}

.dash-status.processing {
    background: rgba(123, 97, 255, 0.15);
    color: #7B61FF;
}

.dash-status.shipped {
    background: rgba(78, 205, 196, 0.15);
    color: #4ECDC4;
}

.dash-status.pending {
    background: rgba(255, 179, 71, 0.15);
    color: #FFB347;
}

.dash-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-table-info {
    font-size: 12px;
    color: #6e7681;
}

.dash-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #8b949e;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.dash-page-btn:hover {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

.dash-page-btn.active {
    background: #00D9A5;
    border-color: #00D9A5;
    color: #0a0e14;
}

.dash-activity-card {
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.dash-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-activity-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.dash-view-all-btn {
    font-size: 12px;
    font-weight: 500;
    color: #00D9A5;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.dash-view-all-btn:hover {
    color: #00f5bb;
}

.dash-activity-list {
    padding: 12px 0;
}

.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px;
    transition: background 0.15s ease;
}

.dash-activity-item:hover {
    background: #151c24;
}

.dash-activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.dash-activity-icon.success {
    background: rgba(0, 217, 165, 0.15);
    color: #00D9A5;
}

.dash-activity-icon.warning {
    background: rgba(255, 179, 71, 0.15);
    color: #FFB347;
}

.dash-activity-icon.info {
    background: rgba(78, 205, 196, 0.15);
    color: #4ECDC4;
}

.dash-activity-icon.primary {
    background: rgba(123, 97, 255, 0.15);
    color: #7B61FF;
}

.dash-activity-icon.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
}

.dash-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-activity-text {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
}

.dash-activity-text strong {
    color: #ffffff;
    font-weight: 500;
}

.dash-activity-time {
    font-size: 11px;
    color: #484f58;
}

@media (max-width: 1400px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {

    .dash-charts-section,
    .dash-tables-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 20px 16px;
    }

    .dash-welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Ripple Animation */
@keyframes dashRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Sound Toggle Button */
.dash-sound-toggle {
    transition: all 0.25s ease !important;
}

.dash-sound-toggle:hover {
    color: #00D9A5 !important;
    border-color: #00D9A5 !important;
}

.dash-sound-toggle i {
    transition: transform 0.15s ease;
}

.dash-sound-toggle:active i {
    transform: scale(0.9);
}

/* Clickable elements active state */
.dash-btn:active,
.dash-stat-card:active,
.dash-table-action-btn:active,
.dash-page-btn:active {
    transform: scale(0.98);
}

/* Cursor pointer for interactive elements */
.dash-stat-card,
.dash-activity-item {
    cursor: pointer;
}
