* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
}

.app {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #111827;
    color: white;
    padding: 25px 18px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px 30px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.brand-name {
    font-size: 17px;
    font-weight: bold;
}

.brand-subtitle {
    color: #9ca3af;
    font-size: 11px;
    margin-top: 3px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    color: #9ca3af;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.nav-item:hover {
    background: #1f2937;
    color: white;
}

.nav-item.active {
    background: #1f2937;
    color: white;
}

.sidebar-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 25px;
}

.logout-link {
    color: #9ca3af;
    display: block;
    padding: 12px;
    border-radius: 8px;
}

.logout-link:hover {
    background: #1f2937;
    color: white;
}

.main {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 35px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 28px;
}

.topbar p {
    color: #6b7280;
    margin-top: 6px;
    font-size: 14px;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 13px;
}

.user-info span {
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 19px;
}

.files-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 18px;
}

.section-header p {
    color: #6b7280;
    font-size: 12px;
    margin-top: 5px;
}

.upload-button {
    background: #4f46e5;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
}

.upload-button:hover {
    background: #4338ca;
}

.file-table-header,
.file-row {
    display: grid;
    grid-template-columns: 2fr 120px 150px 110px;
    align-items: center;
}

.file-table-header {
    background: #f9fafb;
    color: #6b7280;
    padding: 13px 25px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.file-row {
    padding: 14px 25px;
    border-top: 1px solid #e5e7eb;
}

.file-row:hover {
    background: #f9fafb;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.file-icon {
    width: 38px;
    height: 38px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-name-text {
    overflow: hidden;
}

.file-name-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.file-size,
.file-date {
    color: #6b7280;
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 7px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button.download {
    background: #eef2ff;
    color: #4f46e5;
}

.action-button.delete {
    background: #fef2f2;
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 18px;
}

.empty-state p {
    color: #6b7280;
    margin: 8px 0 20px;
    font-size: 13px;
}

@media (max-width: 800px) {
    .sidebar {
        width: 200px;
    }

    .main {
        width: calc(100% - 200px);
        margin-left: 200px;
        padding: 25px 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .file-table {
        overflow-x: auto;
    }

    .file-table-header,
    .file-row {
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .app {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .sidebar-bottom {
        position: static;
        margin-top: 15px;
    }

    .main {
        width: 100%;
        margin-left: 0;
        padding: 20px 15px;
    }

    .topbar {
        align-items: flex-start;
    }

    .user-info {
        display: none;
    }
}