/* ===== BASE ===== */
:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --glass-bg: rgba(255, 255, 255, .7);
    --glass-border: rgba(255, 255, 255, .3);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

/* Advanced Folder Options Styling */
.advanced-options-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
    padding: 32px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.advanced-options-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.advanced-fields-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advanced-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advanced-field-group label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}

.advanced-field-group label svg {
    margin-right: 10px;
    color: #64748b;
}

.advanced-field-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
    color: #1e293b;
}

.advanced-field-input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.advanced-field-input::placeholder {
    color: #94a3b8;
    letter-spacing: 0.2em;
}

/* Mode Selector Tabs */
.mode-selector {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    gap: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.mode-btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
}

.mode-btn.active {
    background: #0f172a;
    color: white;
    box-shadow: var(--shadow-md);
}

.mode-btn:not(.active):hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
}

.mode-badge {
    margin-left: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 800;
}

@media (max-width: 768px) {
    .advanced-options-container {
        padding: 24px 20px;
        margin-top: 1.5rem;
    }
}




/* SPA Loader Bar */
#spa-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

#spa-loader-fill {
    height: 100%;
    background: var(--green-500);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--green-300);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button,
input {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none
}

button {
    cursor: pointer
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.main-content {
    min-height: 100vh;
    padding-top: 90px
}

.page-home .main-content {
    padding-top: 0
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 15px;
    /* Floating look */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1200px;
    z-index: 1000;
    background: var(--white);
    border-radius: 50px;
    border: 1px solid #7e8286;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800
}

.brand-accent {
    color: var(--green-600)
}

.brand-icon {
    display: flex
}

.navbar-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-left: 2rem;
    gap: 20px
}

.navbar-center-pill {
    display: flex;
    align-items: center;
    background: #e2e8f0;
    /* Default light gray for the pill container */
    padding: 6px;
    border-radius: 50px;
    gap: 4px;
    border: 1px solid #cbd5e1;
}

.navbar-right-actions {
    display: flex;
    align-items: center;
    gap: 16px
}

.nav-search-container {
    display: flex;
    align-items: center;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
}

.nav-search-pill {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #7e8286;
}

.nav-search-pill:focus-within {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.nav-search-pill svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

.nav-search-pill input {
    border: none;
    background: transparent;
    outline: none;
    width: 140px;
    font-size: 0.9rem;
    color: var(--gray-800);
    padding: 4px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: .9rem;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--gray-900);
}

.nav-link.active {
    color: var(--green-700);
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05)
}

.nav-cta {
    position: relative;
    background: transparent !important;
    color: var(--gray-800) !important;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    border-radius: 50px !important;
    padding: 8px 18px !important
}

.nav-cta:hover {
    background: var(--gray-50) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-400)
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    /* background: #f1f5f9; */
    /* border-radius: 12px; */
    /* border: 1px solid #e2e8f0; */
    transition: var(--transition);
}

.navbar-toggle:hover {
    /* background: #e2e8f0; */
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition)
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-600), var(--emerald-600));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(22, 163, 74, .3)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, .4)
}

.btn-ghost {
    color: var(--gray-600);
    border: 1px solid var(--gray-200)
}

.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-300)
}

.btn-outline {
    border: 1px solid var(--green-200);
    color: var(--green-700);
    background: var(--green-50)
}

.btn-outline:hover {
    background: var(--green-100);
    border-color: var(--green-300)
}

.btn-white {
    background: var(--white);
    color: var(--green-700);
    font-weight: 700
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg)
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-lg)
}

.btn-sm {
    padding: 6px 12px;
    font-size: .8rem;
    border-radius: var(--radius-sm)
}

.btn-download {
    background: var(--green-50);
    color: var(--green-700);
    padding: 8px;
    border-radius: var(--radius)
}

.btn-download:hover {
    background: var(--green-100)
}

.btn-copy {
    background: var(--green-600);
    color: var(--white)
}

.btn-copy:hover {
    background: var(--green-700)
}

.btn-create {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 24px
}

/* ===== SPINNER ===== */
.spinner {
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-50) 100%);
    padding-top: 110px;
    padding-bottom: 100px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .4;
    animation: float 8s ease-in-out infinite
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--green-300);
    top: -100px;
    right: -100px;
    animation-delay: 0s
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--emerald-500);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--green-200);
    top: 40%;
    left: 60%;
    animation-delay: 4s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-30px) scale(1.05)
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--green-200);
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 24px;
    margin-top: 24px;
    animation: fadeInUp .6s ease
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -.02em;
    animation: fadeInUp .6s ease .1s both
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-600), var(--emerald-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: fadeInUp .6s ease .2s both
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp .6s ease .3s both
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp .6s ease .4s both
}

.stat-item {
    text-align: center
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-700)
}

.stat-label {
    font-size: .8rem;
    color: var(--gray-400);
    font-weight: 500
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0
}

.section-header {
    text-align: center;
    margin-bottom: 48px
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
    border: 1px solid var(--green-100)
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto
}

/* ===== CREATE FOLDER ===== */
.create-section {
    background: var(--gray-50)
}

.create-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition)
}

.create-card:hover {
    box-shadow: var(--shadow-xl)
}

.create-card-inner {
    text-align: center
}

.create-icon {
    margin-bottom: 20px;
    color: var(--green-500)
}

.create-form {
    margin-top: 24px
}

.input-group {
    display: flex;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white)
}

.input-group:focus-within {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15)
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200)
}

.prefix-url {
    font-size: .85rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
    white-space: nowrap
}

.input-field {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--gray-800);
    min-width: 0;
    border: 2px solid var(--gray-200);
}

.input-field::placeholder {
    color: var(--gray-300)
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: .8rem;
    color: var(--gray-400);
    justify-content: center
}

.input-hint.error {
    color: #ef4444
}

.input-hint.success {
    color: var(--green-600)
}

/* Mode Selector - Premium Pill Toggle */
.mode-selector {
    display: inline-flex;
    background: var(--white);
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.mode-btn.active {
    background: #0f172a;
    /* Dark Navy from the image */
    color: var(--white);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.mode-btn.active svg {
    color: var(--white);
}

.mode-btn:not(.active):hover {
    background: var(--gray-50);
    color: var(--gray-700);
}

/* Mode Badge like "SAVE 41%" */
.mode-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Advanced Options Container */
#advanced-options-fields {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    margin-top: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CREATE SUCCESS ===== */
.create-success {
    text-align: center;
    animation: fadeInUp .4s ease
}

.success-icon {
    color: var(--green-500);
    margin-bottom: 16px
}

.create-success h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gray-900)
}

.success-url-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px
}

.success-url-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--gray-700)
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px
}

.qr-section {
    padding-top: 20px;
    border-top: 1px solid var(--gray-100)
}

.qr-label {
    font-size: .8rem;
    color: var(--gray-400);
    margin-bottom: 12px
}

.qr-code-box {
    display: inline-block;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100)
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition)
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200)
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 20px
}

.feature-icon-green {
    background: var(--green-50);
    color: var(--green-600)
}

.feature-icon-emerald {
    background: rgba(16, 185, 129, .1);
    color: var(--emerald-600)
}

.feature-icon-teal {
    background: rgba(20, 184, 166, .1);
    color: #0d9488
}

.feature-icon-lime {
    background: rgba(132, 204, 22, .1);
    color: #65a30d
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gray-900)
}

.feature-card p {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.6
}

/* ===== FILE TYPES ===== */
.filetypes-section {
    background: var(--gray-50)
}

.filetype-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px
}

.filetype-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    min-width: 100px
}

.filetype-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200)
}

.filetype-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius)
}

.ft-pdf {
    color: #ef4444;
    background: #fef2f2
}

.ft-doc {
    color: #3b82f6;
    background: #eff6ff
}

.ft-ppt {
    color: #f97316;
    background: #fff7ed
}

.ft-xls {
    color: var(--green-600);
    background: var(--green-50)
}

.ft-mp3 {
    color: #8b5cf6;
    background: #f5f3ff
}

.ft-zip {
    color: #eab308;
    background: #fefce8
}

.ft-img {
    color: #ec4899;
    background: #fdf2f8
}

.filetype-name {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .05em
}

/* ===== HISTORY ===== */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px
}

.history-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400)
}

.history-empty-icon {
    margin-bottom: 16px;
    opacity: .4
}

.history-empty h3 {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 8px
}

.history-empty p {
    font-size: .9rem
}

.history-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer
}

.history-card:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
}

.history-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    color: var(--green-600);
    border-radius: var(--radius);
    flex-shrink: 0
}

.history-card-info {
    flex: 1;
    min-width: 0
}

.history-card-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.history-card-url {
    font-size: .75rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.history-card-remove {
    padding: 4px;
    color: var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition)
}

.history-card-remove:hover {
    color: #ef4444;
    background: #fef2f2
}

/* ===== CTA ===== */
.cta-section {
    padding: 60px 0 80px
}

.cta-card {
    background: linear-gradient(135deg, var(--green-600), var(--emerald-600));
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.cta-content {
    position: relative;
    z-index: 1
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 12px
}

.cta-content p {
    color: rgba(255, 255, 255, .8);
    margin-bottom: 28px;
    font-size: 1.05rem
}

/* ===== FOLDER PAGE ===== */
.folder-header {
    padding: 32px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100)
}

.folder-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--gray-400);
    margin-bottom: 20px
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
    transition: var(--transition)
}

.breadcrumb-link:hover {
    color: var(--green-600)
}

.breadcrumb-current {
    color: var(--gray-700);
    font-weight: 600
}

.folder-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.folder-info-left {
    display: flex;
    /*align-items: center;*/
    gap: 16px
}

.folder-icon-large {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /*color: var(--gray-800);*/
    border-radius: var(--radius-lg);
    flex-shrink: 0
}

.folder-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px
}

.folder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: var(--gray-500)
}

.folder-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0
}

.qr-panel {
    margin-top: 20px;
    animation: fadeInUp .3s ease
}

.qr-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg)
}

.qr-panel-text {
    font-size: .85rem;
    color: var(--gray-500);
    margin-top: 12px
}

.qr-panel-url {
    font-size: .75rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
    margin-top: 4px
}

/* ===== UPLOAD ===== */
.upload-section {
    padding: 32px 0
}

.upload-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

.upload-dropzone {
    position: relative;
    padding: 48px 32px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    margin: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition)
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--green-400);
    background: var(--green-50)
}

.dropzone-content {
    position: relative;
    z-index: 1
}

.dropzone-icon {
    color: var(--green-400);
    margin-bottom: 16px
}

.dropzone-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px
}

.dropzone-subtitle {
    font-size: .85rem;
    color: var(--gray-400);
    margin-bottom: 4px
}

.dropzone-limit {
    font-size: .8rem;
    color: var(--gray-300)
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}

.dropzone-active-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(22, 163, 74, .08);
    border-radius: var(--radius-lg);
    color: var(--green-600);
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 2
}

.upload-dropzone.drag-over .dropzone-active-overlay {
    display: flex
}

.upload-dropzone.drag-over .dropzone-content {
    opacity: .3
}

/* ===== PROGRESS ===== */
.upload-progress-area {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-100)
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.progress-header h4 {
    font-size: .9rem;
    color: var(--gray-700)
}

#upload-progress-text {
    font-size: .85rem;
    font-weight: 700;
    color: var(--green-600)
}

.progress-bar-track {
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-500), var(--emerald-500));
    border-radius: var(--radius-full);
    width: 0;
    transition: width .3s ease
}

.upload-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: .8rem
}

.upload-file-item.success {
    background: var(--green-50);
    color: var(--green-700)
}

.upload-file-item.error {
    background: #fef2f2;
    color: #ef4444
}

/* ===== FILES GRID ===== */
.files-section {
    padding: 0 0 60px
}

.files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.files-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: var(--gray-800)
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px
}

.files-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400)
}

.files-empty-icon {
    margin-bottom: 16px;
    opacity: .3
}

.files-empty h3 {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 8px
}

.file-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    animation: fadeInUp .4s ease
}

.file-card:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
}

.file-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0
}

.file-type-badge {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 8px;
    border-radius: var(--radius-sm)
}

.file-card-document .file-card-icon {
    background: #eff6ff
}

.file-card-document .file-type-badge {
    color: #3b82f6;
    background: #dbeafe
}

.file-card-presentation .file-card-icon {
    background: #fff7ed
}

.file-card-presentation .file-type-badge {
    color: #f97316;
    background: #ffedd5
}

.file-card-spreadsheet .file-card-icon {
    background: var(--green-50)
}

.file-card-spreadsheet .file-type-badge {
    color: var(--green-600);
    background: var(--green-100)
}

.file-card-audio .file-card-icon {
    background: #f5f3ff
}

.file-card-audio .file-type-badge {
    color: #8b5cf6;
    background: #ede9fe
}

.file-card-archive .file-card-icon {
    background: #fefce8
}

.file-card-archive .file-type-badge {
    color: #ca8a04;
    background: #fef9c3
}

.file-card-image .file-card-icon {
    background: #fdf2f8
}

.file-card-image .file-type-badge {
    color: #ec4899;
    background: #fce7f3
}

.file-card-info {
    flex: 1;
    min-width: 0
}

.file-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: normal;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px
}

.file-meta {
    display: flex;
    align-items: center;
    font-size: .75rem;
    color: var(--gray-400)
}

.file-size::after {
    content: "|";
    margin: 0 8px;
    color: var(--gray-300)
}

.file-card-actions {
    width: 100%;
    display: flex !important;
    gap: 8px !important;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-50);
}

.file-card-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
}

.file-card-actions .btn-outline-danger {
    flex: 0 0 auto;
    margin-left: auto;
    background: transparent !important;
    border: none !important;
    color: var(--gray-500) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.file-card-actions .btn-outline-danger:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* ===== ERROR PAGE ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 40px 24px
}

.error-content {
    max-width: 480px
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1
}

.error-icon {
    color: var(--gray-300);
    margin: 20px 0
}

.error-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 12px
}

.error-message {
    color: var(--gray-500);
    margin-bottom: 28px
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--green-500);
    animation: slideIn .3s ease;
    font-size: .9rem;
    max-width: 380px
}

.toast.error {
    border-left-color: #ef4444
}

.toast.info,
.toast.info-no-icon {
    border-left-color: #3b82f6
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 10px 0 0
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px
}

.footer-desc {
    font-size: .85rem;
    max-width: 280px;
    line-height: 1.6
}

.footer-links {
    display: flex;
    gap: 60px
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.footer-col h4 {
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 4px
}

.footer-col a,
.footer-col span {
    font-size: .85rem;
    transition: var(--transition)
}

.footer-col a:hover {
    color: var(--green-400)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 24px;
    text-align: center;
    font-size: .8rem
}

/* ===== SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@keyframes fadeInSkeleton {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.skeleton-container-wrapper {
    animation: fadeInSkeleton 0.25s ease-out forwards;
}

body.is-loading-page .main-content {
    display: none !important;
}

body.is-loading-page #first-load-skeleton {
    display: block !important;
}

#first-load-skeleton {
    display: none;
    transition: opacity 0.25s ease;
}

/* ===== USER MENU (NAVBAR) ===== */
.nav-user-menu {
    position: relative
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition)
}

.nav-avatar:hover {
    border-color: var(--white);
    transform: scale(1.05)
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownIn .2s ease
}

.nav-dropdown.show {
    display: block
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px
}

.nav-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.nav-dropdown-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: .9rem
}

.nav-dropdown-email {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 2px
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--gray-100)
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: .875rem;
    color: var(--gray-600);
    transition: var(--transition)
}

.nav-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--green-600)
}

.nav-dropdown-logout:hover {
    color: #ef4444;
    background: #fef2f2
}

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-50) 100%)
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    animation: fadeInUp .5s ease
}

.auth-header {
    text-align: center;
    margin-bottom: 32px
}

.auth-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    background: var(--green-50);
    color: var(--green-600)
}

.auth-icon-register {
    background: #eff6ff;
    color: #3b82f6
}

.auth-icon-reset {
    background: #fdf2f8;
    color: #ec4899
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px
}

.auth-header p {
    font-size: .9rem;
    color: var(--gray-500)
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700)
}

.form-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0 14px;
    transition: var(--transition);
    background: var(--white);
    gap: 10px
}

.form-input-wrap:focus-within {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12)
}

.form-input-wrap svg {
    color: var(--gray-400);
    flex-shrink: 0
}

.form-input-wrap input {
    flex: 1;
    padding: 12px 0;
    font-size: .95rem;
    color: var(--gray-800);
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none
}

.form-input-wrap input::placeholder {
    color: var(--gray-300)
}

.form-input-wrap input:-webkit-autofill,
.form-input-wrap input:-webkit-autofill:hover,
.form-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: var(--gray-800) !important;
    transition: background-color 5000s ease-in-out 0s
}

.toggle-password {
    padding: 6px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0
}

.toggle-password:hover {
    color: var(--gray-600);
    background: var(--gray-50)
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green-600);
    cursor: pointer;
    border: 2px solid var(--gray-300);
    border-radius: 4px
}

.form-link {
    font-size: .85rem;
    color: var(--green-600);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap
}

.form-link:hover {
    color: var(--green-700);
    text-decoration: underline
}

.form-link-bold {
    color: var(--green-600);
    font-weight: 700
}

.form-link-bold:hover {
    text-decoration: underline
}

.form-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    font-size: .85rem;
    color: #dc2626;
    line-height: 1.5
}

.form-success {
    padding: 12px 16px;
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: var(--radius);
    font-size: .85rem;
    color: var(--green-700);
    line-height: 1.5
}

.btn-full {
    width: 100%;
    justify-content: center
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    font-size: .9rem;
    color: var(--gray-500)
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 32px 0 80px;
    background: var(--gray-50);
    min-height: calc(100vh - 80px)
}

.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap
}

.dash-welcome h1 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px
}

.dash-welcome p {
    font-size: .9rem;
    color: var(--gray-500)
}

.dash-clock {
    text-align: right;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm)
}

.clock-time {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono)
}

.clock-date {
    font-size: .8rem;
    color: var(--gray-500);
    margin-top: 2px
}

/* Stats Cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition)
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0
}

.dash-stat-info {
    display: flex;
    flex-direction: column
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900)
}

.dash-stat-label {
    font-size: .78rem;
    color: var(--gray-500);
    font-weight: 500
}

/* Charts */
.dash-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 28px
}

.dash-chart-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100)
}

.dash-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800)
}

.chart-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box
}

.chart-container canvas {
    width: 100% !important;
    display: block
}

/* File type stats */
.filetype-stats {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.filetype-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
    font-size: .9rem
}

.filetype-stat-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.filetype-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-600);
    width: 60px;
    flex-shrink: 0
}

.filetype-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0
}

.filetype-stat-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden
}

.filetype-stat-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width .6s ease
}

.filetype-stat-count {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-500);
    width: 28px;
    text-align: right
}

/* Folders Grid */
.dash-folders-section {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden
}

.dash-folders-grid {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.dash-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400)
}

.dash-empty h4 {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 12px 0 8px
}

.dash-empty p {
    font-size: .85rem;
    margin-bottom: 16px
}

.dash-folder-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none
}

.dash-folder-card:hover {
    border-color: var(--green-200);
    background: var(--green-50);
    transform: translateX(4px)
}

.dash-folder-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    color: var(--green-600);
    border-radius: var(--radius);
    flex-shrink: 0
}

.dash-folder-info {
    flex: 1;
    min-width: 0
}

.dash-folder-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.dash-folder-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: .8rem;
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1
}

.dash-folder-meta span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 576px) {
    .dash-folder-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .dash-folder-meta .meta-separator {
        display: none !important;
    }
}

.dash-folder-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    transition: var(--transition)
}

.dash-folder-card:hover .dash-folder-arrow {
    color: var(--green-600);
    transform: translateX(2px)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .dash-charts {
        grid-template-columns: 1fr
    }

    .dash-header {
        flex-direction: column;
        align-items: stretch
    }

    .dash-clock {
        text-align: center;
        width: 100%
    }
}

@media(max-width:1200px) {
    .navbar-inner {
        padding: 0 16px
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--white);
        border-radius: 16px;
        flex-direction: column;
        padding: 24px 16px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
        align-items: stretch;
        border: 1px solid var(--gray-200);
        margin-left: 0
    }

    .navbar-links.open {
        display: flex
    }

    .navbar-center-pill {
        flex-direction: column;
        background: transparent;
        padding: 0;
        align-items: stretch;
        border-radius: 10px;
        gap: 8px
    }

    .navbar-right-actions {
        flex-direction: column;
        align-items: stretch
    }

    .nav-search-container {
        width: 100%;
        margin-top: 8px;
        background: transparent;
        padding: 0;
    }

    .nav-search-pill {
        width: 100%;
        padding: 12px 18px;
        background: var(--gray-50);
        justify-content: flex-start;
        /* border-radius: 12px; */
        box-shadow: none;
        border: 1px solid var(--gray-100);
    }

    .nav-search-pill input {
        width: 100%;
    }

    .navbar-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-link {
        border-radius: 10px;
        justify-content: flex-start
    }

    .nav-user-menu {
        width: 100%;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-100)
    }

    .nav-avatar {
        width: 100%;
        border-radius: var(--radius);
        padding: 12px;
        justify-content: flex-start;
        gap: 12px;
        font-size: 1rem;
        background: var(--gray-50) !important;
        color: var(--gray-900) !important;
        border: 1px solid var(--gray-100)
    }

    .nav-avatar::after {
        content: 'My Account';
        font-weight: 600
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
        animation: none;
        display: none
    }

    .nav-dropdown.show {
        display: block
    }
}

@media(max-width:768px) {
    .features-grid {
        grid-template-columns: 1fr
    }

    .dash-stats {
        grid-template-columns: 1fr
    }

    .filetype-stats {
        padding: 16px
    }

    /* Make create folder input group stacked */
    .input-group {
        flex-direction: column;
        border: none;
        border-radius: 0;
        gap: 12px;
        background: transparent
    }

    .input-group:focus-within {
        box-shadow: none
    }

    .input-prefix {
        border: 2px solid var(--gray-200);
        border-radius: var(--radius);
        justify-content: center
    }

    .input-field {
        width: 100%;
        border: 2px solid var(--gray-200);
        border-radius: var(--radius)
    }

    .btn-create {
        border-radius: var(--radius);
        width: 100%;
        justify-content: center
    }
}

@media(max-width:480px) {
    .hero-title {
        font-size: 1.8rem
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center
    }

    .success-url-box {
        flex-direction: column
    }

    .success-actions {
        flex-direction: column
    }

    .error-actions {
        flex-direction: column;
        width: 100%
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center
    }

    .filetype-grid {
        gap: 12px
    }

    .filetype-card {
        padding: 16px 20px;
        min-width: 80px
    }

    .auth-card {
        padding: 24px 16px
    }

    .create-card {
        padding: 24px 16px
    }

    .feature-card {
        padding: 24px 20px
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }

    .folder-title {
        font-size: 1.25rem
    }

    .folder-actions {
        flex-direction: column;
        width: 100%
    }

    .folder-actions .btn {
        width: 100%;
        justify-content: center
    }

    .dash-header {
        margin-bottom: 20px
    }
}

/* ===== MOBILE NAV ENHANCEMENTS ===== */
.navbar-toggle {
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== DESKTOP NAVIGATION (Laptop/Large Screens) ===== */
@media(min-width: 1201px) {
    .navbar-inner {
        padding: 0 24px;
        display: flex !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .navbar-brand {
        margin-right: 0 !important;
    }

    .navbar-links {
        display: flex !important;
        visibility: visible !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        opacity: 1 !important;
        position: static !important;
        flex-direction: row !important;
        margin-left: 2rem !important;
        gap: 24px !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        border: none !important;
        align-items: center !important;
    }

    .navbar-toggle {
        display: none !important;
        visibility: hidden !important;
    }

    .nav-link {
        width: auto !important;
        padding: 8px 20px !important;
        position: relative;
        font-weight: 500;
        display: flex !important;
        align-items: center !important;
        gap: 6px;
        transition: var(--transition);
        border-radius: 50px !important;
        color: var(--gray-600);
    }

    .nav-link:hover {
        color: var(--gray-900);
        background: transparent;
    }

    .nav-link.active {
        color: var(--green-700) !important;
        background: var(--white) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    /* Premium hover underline effect removed for pill design */
    .nav-link::after {
        display: none;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        display: none;
    }

    .nav-cta::after {
        display: none !important;
    }

    .nav-user-menu {
        width: auto !important;
        margin: 0 0 0 16px !important;
        padding: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-avatar {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border: 2px solid transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-avatar::after {
        display: none !important;
    }

    .nav-dropdown {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 0 !important;
        width: 260px !important;
        box-shadow: var(--shadow-xl) !important;
        border: 1px solid var(--gray-100) !important;
        display: none;
        z-index: 1100;
    }

    .nav-dropdown.show {
        display: block !important;
    }
}

/* Fix File Card meta overlap and alignment */
@media(max-width: 480px) {
    .file-card {
        padding: 12px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .file-card-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .file-card-info {
        flex: 1;
        min-width: 150px;
    }

    .file-card-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid var(--gray-50);
    }

    .file-card-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 10px;
    }

    .file-name {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-all;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ===== NEW HERO SPLIT LAYOUT & VIDEO FRAME ===== */
.hero-split-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.hero-content-left {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-content-left .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
}

.hero-content-left .hero-actions {
    justify-content: flex-start;
}

.hero-content-left .hero-stats {
    justify-content: flex-start;
}

.hero-content-right {
    flex: 1;
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

/* Video Frame mimicking macOS style window */
.video-frame-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-frame-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mac-dots {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 16px;
}

.mac-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }

.video-frame-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--white);
}

.video-frame-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-frame-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 991px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }

    .hero-split-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content-left {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-content-left .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-content-left .hero-actions,
    .hero-content-left .hero-stats {
        justify-content: center;
    }
}

/* ===== PERSISTENT FLOATING UPLOAD WIDGET ===== */
.persistent-upload-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 5px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 999999;
    overflow: hidden;
    font-family: var(--font-sans);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, width 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.persistent-upload-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.persistent-upload-widget.minimized {
    width: 220px;
}

.persistent-upload-widget.minimized .widget-body {
    display: none;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    user-select: none;
}

.widget-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.widget-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.widget-btn:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.widget-btn.btn-close-widget:hover {
    color: #ef4444;
    background: #fef2f2;
}

.widget-body {
    padding: 16px 18px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-overall-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.widget-progress-pct {
    color: var(--green-600);
    font-weight: 700;
}

.widget-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.widget-file-list::-webkit-scrollbar {
    width: 4px;
}
.widget-file-list::-webkit-scrollbar-track {
    background: var(--gray-50);
}
.widget-file-list::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.widget-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    transition: var(--transition);
}

.widget-file-item.success {
    background: var(--green-50);
    border-color: var(--green-100);
    color: var(--green-700);
}

.widget-file-item.error {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #ef4444;
}

.widget-file-info {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.widget-file-status {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.widget-file-item.success .widget-file-status {
    color: var(--green-600);
}

.widget-file-item.error .widget-file-status {
    color: #ef4444;
}

@media (max-width: 480px) {
    .persistent-upload-widget {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    
    .persistent-upload-widget.minimized {
        width: auto;
        left: auto;
        right: 12px;
    }

    .mode-selector {
        padding: 3px;
        gap: 2px;
    }

    .mode-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
        letter-spacing: 0.01em;
    }

    .mode-btn svg {
        margin-right: 4px !important;
    }
}

/* ===== CUSTOM PREMIUM SELECT DROPDOWN ===== */
.custom-select-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: white url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 1rem center !important;
    background-size: 10px !important;
    padding-right: 2.2rem !important;
}

.font-select-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: white url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 0.5rem center !important;
    background-size: 8px !important;
    padding-right: 1.5rem !important;
}

/* ===== Inline Input Group Utility (Force horizontal layout on mobile) ===== */
.input-group-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    gap: 0 !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
}

.input-group-inline .input-prefix {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 12px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.input-group-inline .input-field {
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    flex: 1 !important;
    width: 100% !important;
    height: 48px !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 16px 0 4px !important;
}

.input-group-inline:focus-within {
    border-color: var(--green-500) !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
}

/* ===== Inline Desktop Group helper ===== */
.inline-desktop-group {
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
}

.inline-desktop-group .input-group-inline {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

.inline-desktop-group .btn-create {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    padding: 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .inline-desktop-group {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .inline-desktop-group .btn-create {
        width: 100% !important;
    }
}

/* ===== MiniURL Dashboard List Mobile Styles ===== */
@media (max-width: 576px) {
    #dash-short-urls .dash-folder-card {
        flex-wrap: wrap !important;
        padding: 14px 16px !important;
        gap: 12px !important;
    }
    #dash-short-urls .dash-folder-info {
        flex: 1 !important;
        min-width: 150px !important;
    }
    #dash-short-urls .dash-card-actions {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-top: 4px !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--gray-100) !important;
    }
    #dash-short-urls .dash-card-actions .btn-icon {
        flex: 1 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px !important;
        border: 1px solid var(--gray-100) !important;
        border-radius: var(--radius) !important;
        background: var(--gray-50) !important;
        height: auto !important;
    }
    #dash-short-urls .dash-card-actions .btn-icon:hover {
        background: var(--gray-100) !important;
    }
}