* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f8;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-header h1 {
    font-size: 1.4rem;
}

.container {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

.breadcrumb {
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #2980b9;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb .current {
    font-weight: 600;
    color: #2c3e50;
}

.file-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.file-table thead {
    background-color: #ecf0f1;
}

.file-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #7f8c8d;
}

.file-table td {
    padding: 0.7rem 1rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.file-table tbody tr:hover {
    background-color: #f9fbfc;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.file-name.is-dir {
    color: #2980b9;
    font-weight: 500;
}

.file-name.is-dir:hover {
    text-decoration: underline;
}

.icon {
    font-size: 1.2rem;
}

.btn-download {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background-color: #219150;
}

.loading, .empty-message {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    background: #fff;
    border-radius: 6px;
    margin-top: 1rem;
}

.error {
    background-color: #fdecea;
    color: #c0392b;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    color: #95a5a6;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .file-table th:nth-child(3),
    .file-table td:nth-child(3) {
        display: none;
    }
}