.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#fileSearchText {
    width: 260px;
    height: 36px;
    max-width: 100%;
    padding-left: 34px;
    background-color: rgba(22, 23, 29, 0.7);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
    transition: all 200ms ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 10px 50%;
}

#fileSearchText::placeholder {
    color: var(--muted);
}

#fileSearchText:hover {
    border-color: var(--border-hover);
    background-color: rgba(22, 23, 29, 0.8);
}

#fileSearchText:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    background-color: rgba(22, 23, 29, 0.9);
}

.file-thumb-small {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 400px;
    min-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
}

.file-grid-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(22, 23, 29, 0.6);
    overflow: hidden;
    cursor: pointer;
    transition: all 250ms ease;
}

.file-grid-item:hover {
    border-color: var(--primary);
    background: rgba(22, 23, 29, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.file-grid-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: rgba(22, 23, 29, 0.4);
    overflow: hidden;
}

.file-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-grid-icon {
    font-size: 32px;
    color: #c7cad3;
}

.file-grid-meta {
    padding: 8px 10px;
}

.file-grid-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-grid-size {
    font-size: 12px;
    margin-top: 2px;
}

@import url("https://proxy.dokku.co.kr/fonts/pretendard.css");


:root {
    --bg: #0a0b0d;
    --bg-soft: #13141a;
    --card: #16171d;
    --muted: #6b7280;
    --text: #f3f4f6;
    --primary: #3b82f6;
    --primary-strong: #2563eb;
    --primary-dark: #1e40af;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --ring: rgba(59, 130, 246, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #a1a1aa #23232b;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: transparent;
}
*::-webkit-scrollbar-track {
    background: #23232b;
    border-radius: 8px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a1a1aa 0%, #52525b 100%);
    border-radius: 8px;
    border: 2px solid #23232b;
    min-height: 24px;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #52525b 0%, #27272a 100%);
    border-color: #a1a1aa;
    box-shadow: 0 0 8px #71717a55;
}


body {
    margin: 0;
    font-family: "Pretendard", sans-serif;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.06), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.05), transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.auth-layout {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(22, 23, 29, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 1px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.auth-header {
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3),
                0 0 0 1px rgba(59, 130, 246, 0.2);
}

.brand-title {
    font-size: 20px;
    margin: 0;
}

.brand-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

form {
    display: grid;
    gap: 14px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    color: var(--text);
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-input {
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.6);
    color: var(--text);
    outline: none;
    transition: all 200ms ease;
}

.field-input::placeholder {
    color: var(--muted);
}

.field-input:hover {
    border-color: var(--border-hover);
    background: rgba(22, 23, 29, 0.7);
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    background: rgba(22, 23, 29, 0.8);
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    color: var(--muted);
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.link {
    color: #c2c7d1;
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    text-decoration: underline;
}

.link-button {
    background: none;
    border: none;
    color: #c2c7d1;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.link-button:hover {
    text-decoration: underline;
}

.primary-button {
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    height: 40px;
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.primary-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.form-message {
    min-height: 22px;
    font-size: 14px;
    color: var(--muted);
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: #5ee494;
}

.auth-footer {
    margin-top: 16px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 420px) {
    .auth-card {
        padding: 22px;
    }
}


.dashboard {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.muted {
    color: var(--muted);
}

.list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
}

.file-info { display: flex; gap: 10px; align-items: center; }
.row-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.file-select { display: none; }
.list.selection-mode .file-select { display: inline-block; }
.file-item.selected { border-color: var(--primary); background: rgba(22, 23, 29, 0.9); }

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(7, 12, 28, 0.45);
}

.item a {
    color: #c2c7d1;
    text-decoration: none;
    word-break: break-all;
}

.item a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   Enhanced Dashboard Styles
   ═══════════════════════════════════════════════════ */

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 32px;
    padding: 32px;
    border-radius: 20px;
    background: rgba(22, 23, 29, 0.7);
    /* background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05)); */
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.dashboard-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #cfd3da);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
}

/* Enhanced Card */
.card {
    background: rgba(22, 23, 29, 0.7);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 250ms ease;
}

/* .card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
} */

.dashboard-section {
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 24px;
}

/* Account Section */
.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(7, 12, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7aa9ff);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.4);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-button {
    padding: 0 18px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.8);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
}

.secondary-button:hover {
    background: rgba(22, 23, 29, 0.95);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.secondary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Enhanced Dropzone */
.dropzone {
    flex: 1;
    min-height: 200px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.9), rgba(18, 18, 22, 0.9));
    cursor: pointer;
    transition: all 300ms ease;
    padding: 24px;
    text-align: center;
}

.dropzone:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
}

.dropzone.dragover {
    border-color: var(--primary);
    border-style: solid;
    box-shadow: 0 0 0 4px var(--ring), 0 8px 32px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    transform: scale(1.01);
}

.dropzone-icon {
    /* 드래그 방지 */
    width: 100px;
    pointer-events: none;
    font-size: 48px;
    opacity: 0.6;
}

.dropzone-text {
    font-size: 15px;
    font-weight: 500;
    margin: 10px 0;
}

.dropzone-hint {
    font-size: 13px;
    color: var(--muted);
    opacity: 0.8;
}

/* Upload Section */
.upload-container {
    display: grid;
    gap: 16px;
}

.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Enhanced File List */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(22, 23, 29, 0.6);
    transition: all 250ms ease;
    animation: fadeIn 350ms ease;
}

.file-item:hover {
    border-color: var(--primary);
    background: rgba(22, 23, 29, 0.9);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.file-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #191a20 80%, #23242a 100%);
    border: 1px solid #23242a;
    color: #b6b6b9;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-link {
    color: #b9c7ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
    transition: color 160ms ease;
}

.file-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.file-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* Password Change Form */
.pwd-form-container {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(7, 12, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn 300ms ease;
}

.pwd-form-fields {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 0 12px;
        margin: 20px auto;
    }

    .dashboard-header {
        padding: 20px;
    }

    .dashboard-title {
        font-size: 26px;
    }

    .card {
        padding: 18px;
    }

    .account-info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .button-group {
        width: 100%;
    }

    .button-group button {
        flex: 1;
    }

    .upload-container {
        gap: 12px;
    }

    .upload-actions {
        flex-direction: column;
    }

    .upload-actions button {
        width: 100%;
    }

    .file-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .file-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 22px;
    }

    .card {
        padding: 16px;
    }

    .dropzone {
        min-height: 160px;
        padding: 20px;
    }

    .dropzone-icon {
        font-size: 36px;
    }
}

/* ═══════════════════════════════════════════════════
   Navigation Bar
   ═══════════════════════════════════════════════════ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 13, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.7);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 200ms ease;
    display: grid;
    place-items: center;
}

.nav-button:hover {
    background: rgba(22, 23, 29, 0.9);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 24px;
    background: rgba(22, 23, 29, 0.7);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 200ms ease;
}

.navbar-user:hover {
    background: rgba(22, 23, 29, 0.9);
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.user-name-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════
   Stats Grid
   ═══════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.08));
    border: 1px solid var(--border);
    text-align: center;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}


.stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.12));
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #b9c7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   Quick Actions
   ═══════════════════════════════════════════════════ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(7, 12, 28, 0.55), rgba(15, 22, 46, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 250ms ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 140, 255, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(7, 12, 28, 0.65), rgba(15, 22, 46, 0.65));
}

.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.action-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.action-desc {
    font-size: 13px;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   Enhanced Components
   ═══════════════════════════════════════════════════ */

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.7);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: all 200ms ease;
    display: grid;
    place-items: center;
}

.icon-button:hover {
    background: rgba(22, 23, 29, 0.95);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.icon-button[aria-pressed="true"] {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.7);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 200ms ease;
}

.filter-select:hover {
    border-color: var(--border-hover);
    background: rgba(22, 23, 29, 0.85);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    background: rgba(22, 23, 29, 0.9);
}

.selected-files-preview {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-file-chip {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(79, 140, 255, 0.15);
    border: 1px solid rgba(79, 140, 255, 0.3);
    font-size: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-file-chip-remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 120ms ease;
}

.selected-file-chip-remove:hover {
    opacity: 1;
}

.danger-button {
    padding: 0 18px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid var(--danger);
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
}

.danger-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.danger-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════
   Modal System
   ═══════════════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 250ms ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: rgba(22, 23, 29, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7),
                0 0 1px rgba(59, 130, 246, 0.2);
    animation: modalSlideUp 300ms ease;
    max-height: 90vh;
    overflow: auto;
    backdrop-filter: blur(20px);
}

.modal-sm {
    max-width: 400px;
}

.modal-lg {
    max-width: 700px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 12, 28, 0.55);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 160ms ease;
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: rgba(7, 12, 28, 0.85);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}

.modal-body {
    padding: 12px 24px;
}

.modal-body label {
    margin: 10px 0;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer button {
    min-width: 100px;
}

.modal-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* File Details Modal */
.file-preview-container {
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-container img,
.file-preview-container video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.file-details-info {
    display: grid;
    gap: 16px;
}

.info-row {
    display: grid;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: var(--text);
}

.info-value-with-action {
    display: flex;
    gap: 10px;
}

.info-value-with-action> :first-child {
    padding: 0 5px;
    flex: 9;
}

.info-value-with-action> :last-child {
    flex: 1;
}

/* Confirm Modal */
.confirm-message {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Upload Progress Modal */
.progress-info {
    text-align: center;
    margin-bottom: 20px;
}

.progress-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: rgba(22, 23, 29, 0.8);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    transition: width 300ms ease;
    width: 0%;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.progress-details {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* Account Modal */
.account-modal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(7, 12, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7aa9ff);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.4);
}

.user-name-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.account-actions {
    display: grid;
    gap: 12px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(22, 23, 29, 0.6);
    cursor: pointer;
    transition: all 250ms ease;
    text-align: left;
}

.action-button:hover {
    background: rgba(22, 23, 29, 0.85);
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.action-button-icon {
    font-size: 28px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.action-button-content {
    flex: 1;
}

.action-button-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.action-button-desc {
    font-size: 13px;
    color: var(--muted);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 16px 18px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }

    .info-value-with-action {
        flex-direction: column;
    }

    .navbar-container {
        padding: 12px 16px;
    }

    .brand-text {
        display: none;
    }

    .user-name-small {
        display: none;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}