:root {
    /* Rabbit Cloud Theme Integration */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #3accf0;
    /* Rabbit Cloud Blue */
    --accent-dim: rgba(58, 204, 240, 0.3);
    --danger-color: #ff4757;

    --glass-bg: rgba(30, 30, 30, 0.6);
    /* Slightly lighter for contrast */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', monospace;
    user-select: none;
    /* Global disable for app-like feel */
    -webkit-user-select: none;
}

/* --- Lock Screen Overlay --- */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Deep Black */
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.lock-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid var(--accent-dim);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.lock-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.lock-title {
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.lock-desc {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.lock-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: var(--accent-color);
    text-align: center;
    font-size: 1.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    outline: none;
    transition: border 0.3s;
}

.lock-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-dim);
}

.lock-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    /* Rabbit Blue */
    color: #ffffff;
    /* White Text */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lock-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-dim);
}

/* Danger Mode (Delete) */
.lock-btn.danger {
    background: #ff4444;
    color: #ffffff;
}

.lock-btn.danger:hover {
    background: #cc0000;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.lock-msg {
    margin-top: 1rem;
    height: 20px;
    font-size: 0.9rem;
    font-family: monospace;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Rabbit Cloud Gradients */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(58, 204, 240, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 71, 87, 0.05) 0%, transparent 25%);
}

/* Header */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* System Meters (Header Middle) */
.system-meters {
    flex: 1;
    max-width: 300px;
    margin-left: 2rem;
    /* Move closer to left brand */
    margin-right: auto;
    /* Push everything else to right */
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* Pill-like Container Style */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    /* Smooth rounded corners */
    padding: 8px 15px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    /* Smooth fade in/out */
    opacity: 0;
    /* Default Hidden in Grid */
}

.meter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #888;
}

.meter-label {
    width: 60px;
    /* Increased for Chinese text */
    text-align: right;
    font-weight: bold;
    color: #fff;
    /* White Text as requested */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.meter-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 0 5px currentColor;
    transition: width 0.5s ease;
}

.meter-fill.traffic {
    background: #00d2d3;
    /* Cyan/Blue for Traffic */
    color: #00d2d3;
    width: 60%;
    /* Mock Value */
}

.meter-fill.storage {
    background: #ff9f43;
    /* Orange for Storage */
    color: #ff9f43;
    width: 30%;
    /* Mock Value */
}

.meter-value {
    font-size: 0.65rem;
    width: 60px;
    text-align: right;
    font-family: monospace;
}

/* Hide meters on mobile to save space */
@media (max-width: 768px) {
    .system-meters {
        display: none;
    }
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #333;
    /* Default/Loading */
    border-radius: 50%;
    box-shadow: 0 0 2px #000;
    transition: all 0.3s ease;
}

.status-indicator.online {
    background-color: #00ff41;
    box-shadow: 0 0 8px #00ff41;
}

.status-indicator.offline {
    background-color: #ff4757;
    box-shadow: 0 0 8px #ff4757;
}

/* Main Container */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    /* Increased for 10-col grid */
    width: 100%;
    margin: 0 auto;
}

/* Views Management */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- DRIVE GRID VIEW --- */
.drive-grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    /* 10 columns per row */
    gap: 1rem;
    padding: 1rem 0;
}

/* Responsive fallback for smaller screens */
@media (max-width: 1400px) {
    .drive-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.drive-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 1rem;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.drive-card * {
    pointer-events: none;
    /* Let clicks pass through to the card */
}

.drive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.drive-card:hover {
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.drive-card:hover::before {
    opacity: 1;
}

.drive-card .drive-icon {
    font-size: 2rem;
    color: #444;
}

/* Cloud Icon - Cyan Color for InfiniCLOUD (Same as other drives) */
.drive-card .drive-icon .fa-cloud {
    color: #00d2d3;
}

.drive-card.online .drive-icon {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-dim);
}

/* Cloud Icon - Bright Cyan when Online */
.drive-card.online .drive-icon .fa-cloud {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-dim);
}

.drive-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.drive-name {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Status LED */
.status-led {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #333;
    /* Default off */
    box-shadow: 0 0 2px #000;
}

.drive-card.online .status-led {
    background-color: #00ff41;
    /* CRT Green for status is nice, or use cyan? usage: online = green */
    box-shadow: 0 0 8px #00ff41;
    animation: breathe 2s infinite ease-in-out;
}

.drive-card.offline .status-led {
    background-color: #f00;
    box-shadow: 0 0 5px #f00;
}

@keyframes breathe {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 5px #00ff41;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 12px #00ff41;
    }

    100% {
        opacity: 0.5;
        box-shadow: 0 0 5px #00ff41;
    }
}


/* --- FILE BROWSER VIEW --- */
.breadcrumbs {
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    gap: 0.5rem;
    color: #888;
}

.breadcrumbs span {
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumbs span:hover {
    color: var(--accent-color);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(var(--glass-blur));
}

.file-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px -5px var(--accent-dim);
}

.icon {
    font-size: 2.5rem;
    color: #ccc;
    transition: 0.3s;
}

/* Folder Icon - Yellow/Gold Color */
.icon.fa-folder {
    color: #f39c12;
}

.file-card:hover .icon {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-dim);
}

.file-card:hover .icon.fa-folder {
    color: #f1c40f;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.thumbnail {
    width: 64px;
    height: 64px;
    object-fit: contain;
    /* Preserve aspect ratio */
    border-radius: 4px;
    margin-bottom: 0.5rem;
    filter: brightness(0.8);
    transition: 0.3s;
}

.file-card:hover .thumbnail {
    filter: brightness(1.1);
    box-shadow: 0 0 10px var(--accent-dim);
}

.filename {
    font-size: 0.9rem;
    text-align: center;
    word-break: break-all;
    line-height: 1.3;
}

.meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: auto;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 0 20px var(--accent-dim);
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    z-index: 1000000;
    /* Ultra High Priority */
}

.fab:hover {
    transform: scale(1.1);
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* --- Context Menu --- */
.context-menu {
    position: absolute;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    z-index: 9999999;
    min-width: 150px;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.context-menu-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.context-menu-item:hover {
    background: var(--accent-color);
    color: #000;
}

.context-menu-item i {
    width: 20px;
    text-align: center;
}

.context-menu-divider {
    height: 1px;
    background: #333;
    margin: 0.3rem 0;
}

/* --- TOOLBAR UI --- */
.toolbar {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.15);
    /* Increased from 0.05 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Increased visibility */
    color: #fff;
    /* Force white text */
    padding: 0.6rem 1.2rem;
    /* Slightly larger */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tool-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 10px var(--accent-dim);
}

.tool-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
}

.tool-btn.danger:hover:not(:disabled) {
    background: #ff4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
    margin: 0 0.5rem;
}

/* Selected State */
.file-card.selected {
    border-color: var(--accent-color);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 15px var(--accent-dim) inset;
}

.file-card.selected .icon {
    color: var(--accent-color);
}

.filename-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-color);
    color: #fff;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    outline: none;
    font-family: inherit;
    box-shadow: 0 0 10px var(--accent-dim);
}

/* --- DnD Styles --- */
.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.pill-btn:hover {
    background: rgba(58, 204, 240, 0.15);
    /* Blue tint */
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--accent-dim), 0 0 5px var(--accent-color);
    /* The Blue Glow */
    color: #fff;
    text-shadow: 0 0 8px var(--accent-dim);
}

.pill-btn:active {
    transform: scale(0.95);
}

/* --- Backstage Panel --- */
.backstage-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    /* Behind Lock (10000) but above everything else */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.backstage-panel.active {
    opacity: 1;
}

.backstage-header {
    width: 90%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.backstage-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    /* Mobile friendly */
}

.panel-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-section h3 {
    margin-bottom: 15px;
    /* Added spacing per user request */
}

.admin-list {
    max-height: calc(5 * 60px + 4 * 10px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    cursor: move;
    transition: all 0.2s ease;
}

.admin-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    border-left-color: #0fc;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

.admin-item-info {
    display: flex;
    flex-direction: column;
}

.admin-id {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.admin-name-input {
    font-size: 0.95rem;
    color: #ccc;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 2px 0;
    width: 100%;
    transition: all 0.2s;
}

.admin-name-input:focus {
    color: #fff;
    border-bottom: 1px solid var(--accent-color);
    outline: none;
}

.admin-name-input:hover {
    border-bottom: 1px solid #444;
}

/* Remove old static name style */
/* .admin-name { font-size: 0.9rem; color: #888; } */

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.admin-btn.del {
    background: #ff4444;
}

.admin-btn.del:hover {
    background: #cc0000;
}

.admin-btn.edit {
    background: #444;
}

.admin-btn.edit:hover {
    background: var(--accent-color);
    color: black;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.admin-form input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
    padding: 10px;
    color: white;
    border-radius: 6px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.pill-btn i {
    font-size: 1.1em;
}

.file-card.dragging {
    opacity: 0.5;
    transform: scale(0.9);
}

.file-card.drag-over {
    border: 2px dashed var(--accent-color);
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.05);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

.modal {
    background: rgba(10, 15, 10, 0.95);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    min-width: 400px;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--accent-color);
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

/* Service Provider Select Specifics */
#providerSelect {
    background: #222;
    color: #fff;
    cursor: pointer;
    border: 1px solid #444;
}

#providerSelect option {
    background: #222;
    color: #fff;
    padding: 10px;
}

.copy-row {
    display: flex;
    gap: 0.5rem;
}

.copy-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.copy-row button {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    width: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.copy-row button:hover {
    box-shadow: 0 0 10px var(--accent-dim);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    /* Toolbar: Horizontal Scroll instead of wrap */
    .toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        /* Fade out effect */
    }

    .toolbar::-webkit-scrollbar {
        height: 4px;
    }

    .toolbar::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }

    .tool-btn {
        flex-shrink: 0;
        font-size: 0;
        /* Hide text */
        padding: 0.8rem;
        /* Square-ish aspect */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .tool-btn i {
        font-size: 1.2rem;
        /* Restore icon size */
        margin: 0;
    }

    #toolbarBack {
        font-size: 0.85rem;
        /* Keep text for Main Button */
        gap: 5px;
        padding: 0.6rem 1rem;
        width: auto;
    }

    /* Grid: Allow smaller items but keep them usable */
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 1rem;
    }

    .file-card {
        padding: 0.8rem;
    }

    .file-card .icon {
        font-size: 2rem;
    }

    /* Header Adjustments */
    header {
        padding: 1rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .pill-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* --- Lock System Styles --- */
.admin-btn.lock {
    background: #444;
    transition: all 0.3s ease;
}

.admin-btn.lock.locked {
    background: #ff4444;
    box-shadow: 0 0 5px #ff4444;
}

.admin-btn.lock.unlocked {
    background: #4caf50;
}

.admin-btn.lock:hover {
    filter: brightness(1.2);
}

/* Main Grid Lock Styling */
/* Replace Overlay with simple Icon Style */
.drive-icon.locked-style {
    color: #555;
    /* Dark Grey for Locked State */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

.drive-card.locked {
    border-color: #333;
    /* Default border, not red */
    opacity: 0.7;
    /* Slightly dim */
    cursor: default;
    /* No pointer */
}

/* Specific hover just to show it's interactive-ish (shake) but not clickable */
.drive-card.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #444;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}




/* Main Grid Lock Styling */
.drive-icon.locked-style i {
    color: #555 !important;
    /* Dark Grey for Locked State */
    text-shadow: none !important;
}

.drive-card.locked {
    border-color: #333 !important;
    opacity: 0.6 !important;
    /* Dim it */
    cursor: default !important;
    background: rgba(0, 0, 0, 0.3);
}

.drive-card.locked:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #444 !important;
}

/* --- Pagination Controls --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(var(--glass-blur));
}

.pagination-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination-controls button:hover:not(:disabled) {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 10px var(--accent-dim);
}

.pagination-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-controls span {
    color: #fff;
    font-size: 0.9rem;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}