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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-sidebar: #0f0f18;
    --border-color: #2a2a3e;
    --text-primary: #e0e0e0;
    --text-secondary: #8888aa;
    --accent-cyan: #00d4ff;
    --accent-green: #00ff88;
    --accent-red: #ff4466;
    --accent-yellow: #ffaa00;
    --accent-purple: #aa66ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.top-bar h1 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.storage-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.storage-overview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 3px;
    transition: width 1s ease;
}

.storage-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.folder-tree h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.folder-tree ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.folder:hover {
    background: rgba(0, 212, 255, 0.1);
}

.folder.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.folder .count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--border-color);
    padding: 2px 8px;
    border-radius: 10px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow-y: auto;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.crumb {
    color: var(--text-secondary);
    cursor: pointer;
}

.crumb.active {
    color: var(--text-primary);
}

.separator {
    color: var(--text-secondary);
}

.actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.btn-primary {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-primary:hover {
    background: rgba(0, 212, 255, 0.25);
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: none;
}

.upload-zone.visible {
    display: block;
}

.upload-zone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.upload-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.upload-zone p {
    font-size: 14px;
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-header {
    display: grid;
    grid-template-columns: 40px 1fr 100px 160px 120px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-item {
    display: grid;
    grid-template-columns: 40px 1fr 100px 160px 120px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(42, 42, 62, 0.5);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.file-item.selected {
    background: rgba(0, 212, 255, 0.1);
}

.file-icon {
    margin-right: 8px;
}

.col-size, .col-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.col-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-item:hover .col-actions {
    opacity: 1;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.status-bar {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
