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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f6f8;
    color: #1a1a2e;
    min-height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e0e3e8;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
}

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

.header__quota {
    font-size: 13px;
    color: #6b7280;
}

.header__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.container {
    display: flex;
    min-height: calc(100vh - 56px);
}

.sidebar {
    width: 220px;
    padding: 16px 12px;
    background: #fff;
    border-right: 1px solid #e0e3e8;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.sidebar__item:hover { background: #f3f4f6; }
.sidebar__item--active { background: #eff6ff; color: #2563eb; font-weight: 500; }

.main {
    flex: 1;
    padding: 24px 32px;
}

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

.toolbar__title {
    font-size: 20px;
    font-weight: 600;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn--primary {
    background: #2563eb;
    color: #fff;
}

.btn--primary:hover { background: #1d4ed8; }

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.file-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e3e8;
    background: #fafbfc;
}

.file-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f1f3;
}

.file-table tr:last-child td { border-bottom: none; }
.file-table tr:hover td { background: #f9fafb; }

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.file-icon--folder { background: #fef3c7; color: #d97706; }
.file-icon--doc { background: #dbeafe; color: #2563eb; }
.file-icon--img { background: #d1fae5; color: #059669; }
.file-icon--video { background: #ede9fe; color: #7c3aed; }
.file-icon--archive { background: #f3f4f6; color: #6b7280; }

.file-size { color: #6b7280; }
.file-date { color: #6b7280; font-size: 13px; }
.loading { text-align: center; color: #9ca3af; padding: 40px !important; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { padding: 16px; }
}
