/* ==========================================================================
   SUPER CLOUD - Modern SaaS Design System & Stylesheet
   ========================================================================== */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --primary-text: #3730A3;
    
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-muted: #F1F5F9;
    --bg-active: #E2E8F0;

    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;

    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-text: #991B1B;
    --success: #10B981;
    --success-bg: #ECFDF5;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;

    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.top-nav {
    height: 64px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.3rem;
}

.nav-center {
    flex: 1;
    max-width: 580px;
    margin: 0 24px;
}

.search-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    transition: var(--transition);
}

.search-bar-container:focus-within {
    background: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-bar-container input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-main);
    outline: none;
    font-size: 0.92rem;
}

.search-filter-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    background: var(--bg-muted);
    border: 1px solid transparent;
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-active);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-surface);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.user-profile-btn:hover {
    background: var(--bg-muted);
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   Dropdowns & Menus
   ========================================================================== */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 240px;
    padding: 6px;
    z-index: 50;
    display: none;
    flex-direction: column;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-main);
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-muted);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.user-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-details .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-menu-details .email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-text);
}

.notif-menu {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.notif-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-text-sm {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:hover {
    background: var(--bg-muted);
}

.notif-item.unread {
    background: var(--primary-light);
}

.notif-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.notif-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 4px;
}

.empty-notif {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Layout: Sidebar & Main
   ========================================================================== */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-body {
    display: flex;
    flex: 1;
}

.app-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}

.sidebar-action-container {
    position: relative;
    margin-bottom: 20px;
}

.create-menu {
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-muted);
    color: var(--text-main);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0 8px 0;
}

.sidebar-heading {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-subtle);
    padding: 0 14px;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sidebar-storage-card {
    background: var(--bg-muted);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.storage-title-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.storage-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.storage-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.storage-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.app-main {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg-main);
    min-width: 0;
}

/* ==========================================================================
   Toolbar & Breadcrumbs
   ========================================================================== */

.view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.breadcrumb-link {
    color: var(--text-muted);
    cursor: pointer;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-subtle);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-pills {
    display: flex;
    background: var(--bg-surface);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.pill {
    background: none;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.pill.active {
    background: var(--primary);
    color: #fff;
}

.view-switch-group {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
}

.icon-btn-sm {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn-sm.active {
    background: var(--bg-muted);
    color: var(--text-main);
}

/* ==========================================================================
   Explorer: Folders & Files Grid / List
   ========================================================================== */

.content-explorer-container {
    min-height: 400px;
}

.explorer-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 12px 0;
}

.explorer-section-title:first-child {
    margin-top: 0;
}

/* Grid View */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.folder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.folder-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.folder-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.folder-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.folder-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    user-select: none;
    position: relative;
}

.file-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.file-card-preview {
    height: 120px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-card-icon {
    font-size: 2.8rem;
}

.ext-badge {
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: #64748B;
}

.ext-badge.xlsx, .ext-badge.xls, .ext-badge.csv { background: #107C41; }
.ext-badge.docx, .ext-badge.doc, .ext-badge.txt { background: #185ABD; }
.ext-badge.pptx, .ext-badge.ppt { background: #C43E1C; }
.ext-badge.pdf { background: #D9381E; }
.ext-badge.jpg, .ext-badge.png, .ext-badge.webp { background: #8B5CF6; }

.file-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.file-card-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.card-menu-btn:hover {
    background: var(--bg-muted);
    color: var(--text-main);
}

.file-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* List View Table */
.explorer-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.explorer-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-color);
}

.explorer-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.explorer-table tr:last-child td {
    border-bottom: none;
}

.explorer-table tr:hover td {
    background: var(--bg-muted);
}

.table-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Empty & Loading States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Buttons & Forms
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: var(--bg-muted);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #DC2626;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.82rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-disabled {
    background: var(--bg-muted) !important;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #FECACA;
}

.alert-success {
    background: var(--success-bg);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */

.auth-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.08) 0%, transparent 60%), var(--bg-main);
}

.auth-card-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-brand {
    text-align: center;
}

.auth-logo-icon {
    font-size: 2.4rem;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
}

.auth-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap svg {
    position: absolute;
    left: 14px;
    color: var(--text-subtle);
    pointer-events: none;
}

.input-icon-wrap input {
    padding-left: 42px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Modals & Context Menus
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-dialog {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-muted);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.context-menu {
    position: fixed;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 200px;
    padding: 6px;
    z-index: 120;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Drag & Drop Overlay & Upload Drawer
   ========================================================================== */

.drag-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(79, 70, 229, 0.9);
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.drop-target-box {
    text-align: center;
    border: 3px dashed #fff;
    border-radius: var(--radius-lg);
    padding: 60px 80px;
}

.upload-drawer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 90;
    overflow: hidden;
}

.upload-drawer-header {
    background: var(--bg-muted);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.upload-drawer-body {
    max-height: 240px;
    overflow-y: auto;
    padding: 12px;
}

.upload-item-row {
    margin-bottom: 12px;
}

.upload-item-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.upload-progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.15s ease;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 64px;
        z-index: 45;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    .app-sidebar.open {
        left: 0;
    }
    .app-main {
        padding: 16px;
    }
    .nav-center {
        margin: 0 12px;
    }
}
