/* assets/style.css - Design system for Monarca CloudDrive */

/* Core Variables */
:root {
    --bg-base: hsl(20, 18%, 7%);
    --bg-surface: hsla(20, 15%, 13%, 0.7);
    --bg-surface-hover: hsla(20, 15%, 18%, 0.9);
    --bg-surface-active: hsla(20, 15%, 22%, 1);
    
    --brand-gold: hsl(45, 63%, 53%);
    --brand-gold-hover: hsl(45, 73%, 58%);
    --brand-coffee: hsl(20, 50%, 38%);
    --brand-coffee-hover: hsl(20, 60%, 43%);
    
    --text-primary: hsl(20, 10%, 94%);
    --text-muted: hsl(20, 8%, 65%);
    --text-gold: hsl(45, 63%, 53%);
    
    --danger: hsl(0, 72%, 50%);
    --danger-hover: hsl(0, 85%, 55%);
    --success: hsl(142, 70%, 45%);
    
    --border-color: hsla(20, 12%, 22%, 0.5);
    --border-color-focus: hsla(45, 63%, 53%, 0.6);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 10% 10%, hsla(20, 50%, 15%, 0.2) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(45, 63%, 10%, 0.15) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background-color: var(--bg-surface);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* LOCK SCREEN */
.lock-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.logo-container {
    margin-bottom: 24px;
    display: inline-flex;
    padding: 16px;
    background: radial-gradient(circle, hsla(45, 63%, 53%, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-logo-img {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.login-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFF 30%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand-gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--brand-coffee) 0%, var(--brand-coffee-hover) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(61, 35, 20, 0.3);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 35, 20, 0.5);
    background: linear-gradient(135deg, var(--brand-coffee-hover) 0%, hsl(20, 70%, 48%) 100%);
}

.error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    color: hsl(354, 80%, 75%);
    font-size: 0.9rem;
    margin-bottom: 24px;
    animation: shake 0.4s ease;
}

/* DASHBOARD SCREEN */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img-header {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-meta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.logo-meta span {
    font-size: 0.8rem;
    color: var(--brand-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* Main Layout Grid */
.app-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    overflow: hidden;
    padding: 24px;
    gap: 24px;
}

/* Control Panel / Sidebar */
.control-panel {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-coffee) 0%, var(--brand-coffee-hover) 100%);
    border: none;
    color: white;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(61, 35, 20, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-coffee-hover) 0%, hsl(20, 60%, 46%) 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-gold);
}

.storage-info {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.storage-info h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Selection Bar */
.selection-actions {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.selection-actions.hidden {
    display: none;
}

#selection-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: var(--transition-fast);
}

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

/* Explorer Panel */
.explorer-panel {
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 24px;
    overflow: hidden;
}

/* Drag and Drop Zone Overlay */
.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(31, 16, 10, 0.9);
    border: 3px dashed var(--brand-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.explorer-panel.dragover .drag-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drag-hint-box {
    text-align: center;
    color: var(--brand-gold);
}

.drag-hint-box svg {
    margin-bottom: 16px;
    animation: float 2s infinite ease-in-out;
}

.drag-hint-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.drag-hint-box p {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

#breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--brand-gold);
}

.breadcrumb-item.active {
    color: var(--brand-gold);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--border-color);
}

/* Files Grid View */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
    align-content: start;
}

/* Custom Scrollbar for Explorer */
.files-grid::-webkit-scrollbar {
    width: 6px;
}
.files-grid::-webkit-scrollbar-track {
    background: transparent;
}
.files-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.files-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading state */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    border-top-color: var(--brand-gold);
    animation: spin 1s linear infinite;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    stroke: var(--border-color);
}

.empty-state h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* File / Folder Card */
.card-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast) ease-in-out;
    user-select: none;
    height: 160px;
    justify-content: center;
}

.card-item:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.card-item.selected {
    background-color: hsla(45, 63%, 53%, 0.08);
    border-color: var(--brand-gold);
}

/* Select Checkbox Inside Card */
.card-select-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 5;
}

.card-item:hover .card-select-btn,
.card-item.selected .card-select-btn {
    opacity: 1;
}

.card-item.selected .card-select-btn {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.card-item.selected .card-select-btn::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Card Icon Box */
.card-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 12px;
}

.card-icon-box svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.card-meta {
    text-align: center;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* File Badges colors by extension */
.file-pdf { --icon-color: #E2574C; }
.file-img { --icon-color: #38bdf8; }
.file-vector { --icon-color: #eab308; }
.file-archive { --icon-color: #a855f7; }
.file-default { --icon-color: #94a3b8; }

/* MODALS */
.modal-dialog {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: hsla(20, 15%, 12%, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    margin: auto;
    box-shadow: var(--shadow-lg);
    outline: none;
}

.modal-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-form h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-cancel:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
}

.btn-submit-action {
    background: linear-gradient(135deg, var(--brand-coffee) 0%, var(--brand-coffee-hover) 100%);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-submit-action:hover {
    background: linear-gradient(135deg, var(--brand-coffee-hover) 0%, hsl(20, 60%, 46%) 100%);
}

/* PREVIEW DIALOG SPECIFIC */
.preview-dialog {
    max-width: 900px;
    width: 90%;
    height: 80vh;
    padding: 0;
    display: none;
    flex-direction: column;
}

.preview-dialog[open] {
    display: flex;
}

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

.preview-header h3 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.preview-header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-preview-action {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-preview-action:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.btn-close:hover {
    color: white;
}

.preview-body {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* UPLOAD TOAST BAR */
.upload-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background-color: hsla(20, 15%, 12%, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-focus);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.upload-toast.hidden {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-track {
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-coffee) 0%, var(--brand-gold) 100%);
    transition: width 0.1s ease;
}

#toast-details {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .app-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .app-header {
        padding: 12px 16px;
    }
    
    .control-panel {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .action-buttons button {
        flex: 1;
    }
    
    .storage-info {
        display: none;
    }
}

/* VIEW MODES (GRID vs LIST) */
.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.breadcrumb-container {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    flex: 1;
}

.view-toggle-container {
    display: flex;
    gap: 8px;
}

.btn-toggle {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: var(--text-muted);
}

.btn-toggle.active {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* List View Layout Overrides */
.files-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 8px;
}

.files-grid.list-view .card-item {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 16px;
    height: 56px !important;
}

.files-grid.list-view .card-icon-box {
    height: 40px;
    width: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.files-grid.list-view .card-icon-box svg {
    width: 28px;
    height: 28px;
}

.files-grid.list-view .card-meta {
    text-align: left;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

.files-grid.list-view .card-title {
    margin-bottom: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.files-grid.list-view .card-subtitle {
    width: 100px;
    text-align: right;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.files-grid.list-view .card-select-btn {
    position: static;
    opacity: 1;
    flex-shrink: 0;
}

/* Global utility classes */
.hidden {
    display: none !important;
}
