﻿/**
 * OrangeFiles - Base Styles
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --badge-font-size: 0.8rem;
    --badge-padding: 3px 8px;
    --card-title-size: 1rem;
    --card-icon-size: 3rem;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
    min-height: 100vh;
    padding: 0;
    padding-top: 60px;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

/* Dot-grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* Color orbs */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 500px at 85% -10%, rgba(255, 81, 47, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at -10% 90%, rgba(240, 152, 25, 0.20) 0%, transparent 70%),
        radial-gradient(ellipse 350px 350px at 50% 50%, rgba(124, 58, 237, 0.10) 0%, transparent 70%);
}

/* Rotating accent rings */
.bg-ring-1 {
    position: fixed;
    top: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    border: 2px solid rgba(255, 255, 255, 0.055);
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
    animation: bgRingRotate 30s linear infinite;
}

.bg-ring-2 {
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border: 2px solid rgba(255, 255, 255, 0.045);
    border-radius: 60px;
    z-index: -1;
    pointer-events: none;
    animation: bgRingRotate 40s linear infinite reverse;
}

@keyframes bgRingRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Colored SVG icon scatter */
.bg-icons-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.18'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.16'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.16'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.16'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.14'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.15'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E");
    background-size: 110px 110px, 140px 140px, 130px 130px, 120px 120px, 100px 100px, 150px 150px;
    background-position: 0 0, 200px 120px, 450px 200px, 700px 50px, 150px 400px, 500px 350px;
    background-repeat: repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent for background visibility */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Responsive Shared Components */
.video-badge,
.category-badge,
.file-placeholder-ext {
    font-size: var(--badge-font-size) !important;
    padding: var(--badge-padding) !important;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .section-content {
        padding: 20px 15px;
        border-radius: 20px;
    }

    body {
        padding-top: 20px;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {

    .video-badge,
    .category-badge {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
}

/**
 * OrangeFiles - Navbar Styles
 */
/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 8px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF512F;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}

.navbar-item {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.navbar-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.navbar-item:hover {
    background: #fff5ec;
    color: #FF512F;
}

.navbar-item.active {
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.navbar-item.active svg {
    transform: scale(1.1);
}

/* Central Navbar Item - PC Version Visibility */
.navbar-item-central .mobile-only-logo {
    display: none !important;
}

.navbar-item-central .pc-only-icon {
    display: flex;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #FF512F;
}

/* Mobile styling is handled exclusively by mobile-navbar.css */
/* ========================================
   MOBILE NAVBAR WITH CURVED NOTCH
   Using radial-gradient for smooth cutout
   ======================================== */

@media (max-width: 768px) {
    body {
        padding-top: 20px;
        padding-bottom: 52px;
        /* 60% of 85px */
    }

    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 42px;
        background:
            radial-gradient(circle at 50% 6px, transparent 29px, #ffffff 30px);
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        overflow: visible;
        border: none;
    }

    .navbar-container {
        position: relative;
        padding: 0;
        height: 100%;
        max-width: none;
    }

    .navbar-brand {
        display: none;
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex !important;
        height: 100%;
        width: 100%;
        justify-content: space-evenly;
        align-items: center;
        padding: 0 10px;
        margin: 0;
        background: transparent;
        position: relative;
    }

    .navbar-item {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 4px 0;
        gap: 0px;
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #64748b;
        background: transparent !important;
        border: none !important;
        transition: color 0.2s ease;
    }

    .navbar-item svg {
        width: 20px !important;
        /* Increased for better visibility */
        height: 20px !important;
        stroke-width: 2.5px;
    }

    .navbar-item span:last-child {
        margin-top: -3px;
        /* Pull text closer to icon */
    }

    .navbar-item.active {
        color: #FF512F !important;
    }

    .navbar-item:hover {
        color: #FF512F;
        transform: translateY(-2px);
    }

    /* Center spacer for symmetrical layout */
    .navbar-center-spacer {
        flex: 1;
        pointer-events: none;
        visibility: hidden;
    }

    /* Hide on desktop */
    @media (min-width: 769px) {
        .navbar-center-spacer {
            display: none;
        }
    }

    /* Central Upload Button - Floating in the notch */
    .navbar-item-central {
        position: absolute !important;
        left: 50% !important;
        top: -25px !important;
        /* 60% of -42px */
        margin-left: 0 !important;
        transform: translateX(-50%) !important;
        z-index: 100 !important;
        flex: none !important;
        pointer-events: auto !important;
        /* Remove any box-shadow that creates square effect */
        box-shadow: none !important;
        background: transparent !important;
    }

    .navbar-item-central .pc-only-icon {
        display: none !important;
    }

    .navbar-item-central .mobile-only-logo {
        display: flex !important;
    }

    /* Hide PC elements on mobile */
    @media (max-width: 768px) {
        .pc-only-icon {
            display: flex;
        }

        .mobile-only {
            display: block;
        }
    }

    .central-logo-wrapper {
        width: 42px;
        height: 42px;
        background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
        border-radius: 50%;
        border: 2.4px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(255, 81, 47, 0.4);
        transition: transform 0.2s ease;
    }

    .navbar-item-central:hover .central-logo-wrapper {
        transform: scale(1.08) translateY(-3px);
        box-shadow:
            0 12px 25px rgba(255, 81, 47, 0.5),
            0 0 0 8px rgba(255, 81, 47, 0.1);
    }

    .central-of-logo {
        width: 22px;
        /* 60% of 36px */
        height: auto;
        /* Show original logo colors (orange) */
        filter: none;
    }

    .navbar-item-central span {
        display: none !important;
    }



    /* Responsive adjustments */
    @media (max-width: 480px) {
        .navbar {
            height: 65px;
            background:
                radial-gradient(circle at 50% -18px, transparent 47px, #ffffff 48px);
        }

        .navbar-item {
            font-size: 0.6rem;
            padding: 6px 0;
        }

        .navbar-item svg {
            width: 22px !important;
            height: 22px !important;
        }

        .navbar-item-central {
            top: -27px;
        }

        .central-logo-wrapper {
            width: 65px;
            height: 65px;
            border-width: 3px;
        }

        .central-of-logo {
            width: 32px;
        }
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .navbar {
        background:
            radial-gradient(circle at 50% 10px, transparent 48px, rgba(30, 41, 59, 0.98) 49px);
    }

    .central-logo-wrapper {
        border-color: #1e293b;
    }

    .navbar-item {
        color: #94a3b8;
    }

    @media (max-width: 480px) {
        .navbar {
            background:
                radial-gradient(circle at 50% 3px, transparent 42px, rgba(30, 41, 59, 0.98) 43px);
        }
    }
}

/* Custom SweetAlert Styles */
.swal-popup-custom {
    border-radius: 20px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    max-width: 90vw !important;
}

/* Force 320px dialogs to stay compact */
.swal2-popup {
    max-width: none !important;
}


.swal-title-custom {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
}

.swal-text-custom {
    font-size: 10px !important;
    color: #64748b !important;
}

/* SweetAlert Button Styles */
.swal2-confirm,
.swal2-cancel {
    padding: 8px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.swal2-confirm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.swal2-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    margin-right: 10px !important;
}

.swal2-cancel:hover {
    background: #e2e8f0 !important;
}


/* Cropper Circular View */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    outline: 0;
    box-shadow: 0 0 0 1px #39f;
}

/* Account styles moved to style.css */
/**
 * OrangeFiles - Upload Styles
 */
.category-section {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-select,
.category-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

.category-select:focus,
.category-input:focus {
    border-color: #FF512F;
    box-shadow: 0 0 0 4px rgba(255, 81, 47, 0.1);
    transform: translateY(-1px);
}

.category-input {
    display: none;
    background: #fff8f6;
    border-style: dashed;
}

.category-input.show {
    display: block;
    /* Fix visibility */
    animation: fadeIn 0.3s ease;
}

/* New Wrapper for Icon + Select */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF512F;
    pointer-events: none;
    z-index: 10;
    width: 20px;
    height: 20px;
}

.category-select,
.category-input {
    padding-left: 45px;
    /* Make room for icon */
}

.category-input::placeholder {
    color: #94a3b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drop-zone {
    border: 2px dashed #FF512F;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff5ec 0%, #ffe0cc 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.drop-zone:hover {
    border-color: #F09819;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 81, 47, 0.3);
}

.drop-zone.drag-over {
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    border-color: white;
}

.drop-zone.drag-over * {
    color: white !important;
}

.drop-zone-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #FF512F;
}

.drop-zone h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 800;
}

.drop-zone p {
    color: #64748b;
    font-size: 0.9rem;
}

/* SweetAlert Customizations */
.swal2-input {
    text-align: center !important;
}

#fileInput {
    display: none;
}

/* Progress Section */
.progress-section {
    display: none;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    margin: 30px auto;
    border: 1px solid #f1f5f9;
}

.progress-section.visible {
    display: block !important;
}

/* Circular Progress Bar */
.circular-progress-container {
    display: none;
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
}

.circular-progress-container.active {
    display: block !important;
}

.circular-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-bg-circle {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 4;
}

.circular-progress-overall {
    fill: none;
    stroke: #FF512F;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.overall-percentage {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    z-index: 10;
}

.logo-center.uploading {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 45px;
    width: auto;
    z-index: 5;
    opacity: 0.8;
}

/* File Detail Rows - Mini Grid Layout */
.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.preview-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    color: #64748b;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #FF512F;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.file-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    /* Square */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: #FF512F;
}

.file-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Inner radius matching parent */
}

.file-preview-icon {
    font-size: 2.5rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide text details in mini grid, show on hover maybe? */
.file-details {
    display: none;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    /* Hidden by default */
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-item:hover .remove-file {
    opacity: 1;
    transform: scale(1);
}

.remove-file:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.file-progress-details {
    margin-top: 25px;
}

.file-count-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
    overflow: hidden;
}

.file-size-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.progress-row-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s ease;
}

.file-count-label,
.file-count-percentage,
.file-size-current,
.file-size-percentage {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.uploading-icon {
    animation: pulse 2s infinite;
}

/* Premium Upload Actions */
.upload-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.btn-cancel {
    flex: 1;
    padding: 16px;
    border-radius: 15px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-cancel:hover {
    background: #f1f5f9;
    color: #ef4444;
    border-color: #ef4444;
}

.btn-upload {
    flex: 2;
    padding: 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 81, 47, 0.2);
    font-family: 'Outfit', sans-serif;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 81, 47, 0.3);
    filter: brightness(1.1);
}

.btn-upload:active {
    transform: translateY(0);
}

/**
 * OrangeFiles - Datafiles Styles
 */
.gallery-section {
    background: white;
    border-radius: 20px;
    padding: 0;
}

/* Sticky Action Bar */
.sticky-controls-wrapper {
    position: sticky;
    top: 60px;
    z-index: 100;
    padding: 10px 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-action-bar {
    background: white;
    border-radius: 18px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.folder-selection-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.active-folder {
    padding: 8px 14px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.2);
}

.folder-badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.folder-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    padding: 12px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.folder-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    margin-bottom: 5px;
}

.folder-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.folder-option:hover {
    background: #fff8f6;
    color: #FF512F;
}

.action-toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-divider {
    width: 1.5px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 4px;
}

.cleanup-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cleanup-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s;
}

.cleanup-link:hover {
    color: #FF512F;
    transform: translateY(-1px);
}

.cleanup-link.danger:hover {
    color: #ef4444;
}

.cleanup-link span {
    display: inline-block;
}

.action-item-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-item-btn:hover {
    background: white;
    border-color: #FF512F;
    color: #FF512F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.1);
}

.action-item-btn.active {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.4);
}

/* Toolbar icons managed in specific component CSS */

/* Bulk Action Bar - Light Orange Glass Design */
.bulk-action-bar {
    display: none;
    /* Flex when active */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Start hidden below screen */

    width: auto;
    min-width: 380px;
    max-width: 90%;

    background: rgba(255, 255, 255, 0.9);
    /* White Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 81, 47, 0.15);
    /* Subtle Orange Border */
    box-shadow:
        0 20px 40px rgba(255, 81, 47, 0.15),
        /* Orange Glow */
        0 5px 15px rgba(0, 0, 0, 0.05);

    color: #334155;
    z-index: 1100;

    align-items: center;
    justify-content: space-between;
    gap: 20px;

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}

.bulk-action-bar.active {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    animation: none;
}

.bulk-info {
    font-weight: 700;
    color: #334155;
}

.bulk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    /* Light Slate */
    border: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bulk-btn:hover {
    background: #FF512F;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 81, 47, 0.2);
}

.bulk-btn.danger {
    background: #fee2e2;
    color: #ef4444;
}

.bulk-btn.danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.bulk-buttons {
    display: flex;
    gap: 10px;
}

/* Mobile Adjustments for Bulk Bar */
@media (max-width: 768px) {
    .bulk-action-bar {
        bottom: 70px;
        /* Above navbar */
        min-width: unset;
        width: 90%;
        padding: 12px 16px;
        flex-direction: row;
        /* Keep row on mobile */
        gap: 15px;
    }

    .bulk-info {
        font-size: 0.9rem;
    }

    .bulk-buttons {
        width: auto;
        justify-content: flex-end;
    }

    .bulk-btn {
        padding: 8px 12px;
    }

    .bulk-btn span {
        display: none;
        /* Hide text on small screens if needed, or keep short */
    }
}

/* Filter Controls */
.filter-control-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 16px;
    margin-top: 0;
    flex-wrap: wrap;
    border: none;
}

.filter-control-row.active {
    display: flex;
}

.type-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.type-filter-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #f1f5f9;
}

.type-filter-btn:hover {
    color: #FF512F;
    border-color: #FF512F;
}

.type-filter-btn.active {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.4);
    transform: translateY(-1px);
}

.type-filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Slider */
.gallery-controls {
    width: 140px;
}

.thumbnail-slider {
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
}

.thumbnail-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #FF512F;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.thumbnail-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #FF512F;
}

/* Gallery Grid & Items */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    gap: 12px;
}

/* Empty State Redesign */
.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.empty-gallery-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin: 0 auto 20px !important;
    background: #f8fafc;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.empty-gallery-icon svg {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
    stroke: #94a3b8;
}

.empty-gallery h3 {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 700;
    color: #334155;
    margin: 0 auto 8px !important;
    text-align: center !important;
}

.empty-gallery p {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 300px;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
}

.empty-gallery-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    background: white;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.empty-gallery h3 {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: center;
}

.empty-gallery p {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
}

.file-ext {
    font-size: 0.75rem;
    font-weight: 900;
    color: #94a3b8;
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gallery-item-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 81, 47, 0.3) 0%, rgba(255, 81, 47, 0.8) 100%);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.gallery-item:hover .gallery-item-hover {
    opacity: 1;
}

.item-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .item-actions {
    transform: translateY(0);
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
    background: #FF512F;
    color: white;
}

.action-btn.delete:hover {
    background: #ef4444;
}

.item-info {
    color: white;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
}

.item-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.item-size {
    font-size: 0.7rem;
    opacity: 0.9;
}

.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}

.video-badge.audio-badge {
    background: #8b5cf6;
}

.video-badge.doc-badge {
    background: #3b82f6;
}

.video-badge.zip-badge {
    background: #f59e0b;
}

.selection-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    z-index: 15;
    display: none;
}

.selection-active .selection-indicator {
    display: flex;
}

.gallery-item.selected {
    border: 3.5px solid #FF512F;
}

.gallery-item.selected .selection-indicator {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.4);
}

@media (max-width: 768px) {
    .premium-action-bar {
        flex-direction: row;
        /* Keep as row */
        flex-wrap: wrap;
        /* Allow wrapping if absolutely needed, but try to fit */
        gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 16px;
        justify-content: space-between;
        /* Space out folder and actions */
    }

    /* Adjust folder group to take less space or fit nicely */
    .folder-selection-group {
        width: auto;
        /* Don't force 100% */
        flex: 1;
        /* Take available space */
        min-width: 0;
        /* Allow shrinking */
    }

    .active-folder {
        padding: 6px 10px;
        /* Smaller padding on mobile */
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .folder-badge-count {
        display: none;
        /* Hide count on mobile to save space if needed, or keep small */
    }

    .action-toolbar-group {
        width: auto;
        /* Don't force 100% */
        padding-top: 0;
        border-top: none;
        justify-content: flex-end;
    }

    .cleanup-link span {
        display: none;
    }

    .cleanup-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .toolbar-divider {
        display: none;
    }

    .sticky-controls-wrapper {
        top: 0;
        padding: 10px 5px;
    }

    .bulk-action-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .bulk-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .filter-control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .type-filters {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-controls {
        width: 100%;
    }
}

/**
 * OrangeFiles - Account Styles
 */
.user-card {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 90px;
    height: 90px;
    background: #fff5f2;
    color: #FF512F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(255, 81, 47, 0.15);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}

.user-role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.role-seller {
    background: #fee2e2;
    color: #ef4444;
}

.role-member {
    background: #dcfce7;
    color: #166534;
}

/* Subscription Stats */
.pro-report-container,
.usage-report-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: left;
    margin-bottom: 20px;
    border: 1px solid #ffedd5;
    box-shadow: 0 4px 20px rgba(255, 81, 47, 0.05);
}

.pro-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.pro-row:last-child {
    border-bottom: none;
}

.pro-label {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

.pro-value.highlight {
    color: #FF512F;
}

.pro-progress-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    margin: 15px 0 10px;
    overflow: hidden;
}

.pro-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #FF512F, #F09819);
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Stat Grid */
.stat-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.stat-card {
    flex: 1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 15px 5px;
    text-align: center;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.1);
    border-color: #ffedd5;
}

.stat-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #FF512F;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

/* Mobile Account Overrides */
@media (max-width: 768px) {
    #accountSection.active {
        height: 100vh;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 80px;
        z-index: 1000;
    }

    #accountSection .section-content {
        width: 90% !important;
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        background: transparent !important;
        box-shadow: none !important;
    }

    #accountSection .user-card {
        width: 85% !important;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 24px;
        padding: 25px 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px !important;
        margin-bottom: 120px !important;
        height: auto !important;
        overflow: visible !important;
    }

    #accountSection .user-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 5px !important;
    }

    #accountSection .user-name {
        font-size: 1.3rem;
        margin-bottom: 2px !important;
    }

    .pro-report-container,
    .usage-report-container {
        width: 85% !important;
        margin: 0 auto 15px auto !important;
    }
}

/**
 * OrangeFiles - Management Styles
 */
.dashboard-tab {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 24px;
    margin-top: 20px;
}

.dashboard-tab h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Management Items */
.user-management-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.user-management-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Code Items */
.code-list {
    margin-top: 15px;
}

.code-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.code-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FF512F;
    letter-spacing: 1.5px;
}

.status-unused {
    background: #dcfce7;
    color: #166534;
}

.status-used {
    background: #f1f5f9;
    color: #64748b;
}

/* Buttons */
.btn-generate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 81, 47, 0.2);
}

.btn-generate:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/**
 * OrangeFiles - Modals Styles
 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: grab;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.lightbox-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 2005;
}

.lightbox-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-btn:hover {
    transform: scale(1.2);
}

/* HTML5 Modals (Video/Audio/Doc) */
.video-modal,
.audio-modal,
.doc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.video-modal.active,
.audio-modal.active,
.doc-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
}

.video-modal video {
    width: 100%;
    border-radius: 12px;
}

.audio-player-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 350px;
    text-align: center;
}

.audio-icon-large {
    font-size: 4rem;
    color: #FF512F;
    margin-bottom: 20px;
}

/* SweetAlert Mobile Responsiveness */
@media (max-width: 480px) {
    .swal2-popup {
        width: 300px !important;
        padding: 15px !important;
        font-size: 10px !important;
    }

    .swal2-title {
        font-size: 1.1rem !important;
    }

    .swal2-html-container {
        font-size: 0.9rem !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* Breadcrumb Navigation for Nested Paths (v2.2.0) */
.breadcrumb-path {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    opacity: 0.9;
}

.breadcrumb-link:hover {
    color: #FF512F;
    opacity: 1;
}

.breadcrumb-icon {
    display: inline-block;
    vertical-align: middle;
}

.breadcrumb-sep {
    color: white;
    font-weight: 300;
    font-size: 0.65rem;
    margin: 0 2px;
    user-select: none;
    opacity: 0.6;
}

/**
 * OrangeShare - Premium Connection Card (v2.2.1)
 */
.connection-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.connection-avatar-wrapper {
    position: relative;
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
}

.connection-avatar {
    width: 100% !important;
    height: 100% !important;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.connection-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 42px;
}

.connection-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: #cbd5e1;
    /* Default/Loading */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.connection-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.connection-status-dot.busy {
    background: #f59e0b;
}

.connection-info {
    flex: 1;
    min-width: 0;
}

.connection-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connection-status-text {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.connection-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.send {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.action-btn.send:hover {
    background: #d1fae5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.action-btn.disconnect {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    width: 42px;
    /* icon only button */
    padding: 0;
}

.action-btn.disconnect:hover {
    background: #ffe4e6;
    color: #be123c;
    transform: translateY(-1px);
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
}

/* Compact folder selection area */
.active-folder {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.active-folder .real-count {
    white-space: nowrap;
}