/* Gaya Dasar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container Utama */
.file-explorer-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.explorer-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.explorer-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.back-button, .table-button {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-button:hover, .table-button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.back-button i, .table-button i {
    margin-right: 5px;
}

/* Navigasi Direktori */
.directory-nav {
    display: block;
    padding: 0.8rem 1.5rem;
    background: #f0f2f5;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s;
}

.directory-nav:hover {
    background: #e1e5eb;
    color: #333;
}

/* Daftar File */
.file-list {
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.file-item:hover {
    background: #f9f9f9;
}

.file-item.directory {
    background: #f8fafc;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name {
    font-weight: 500;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-count {
    background: #e1f0ff;
    color: #1a73e8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.download-button {
    background: #1a73e8;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-button:hover {
    background: #0d5bba;
    text-decoration: none;
}

/* Ikon */
.fa-folder {
    color: #ffb74d;
}

.fa-file {
    color: #78909c;
}

.fa-arrow-up {
    color: #555;
}

/* Responsif */
@media (max-width: 768px) {
    .file-explorer-container {
        margin: 0;
        border-radius: 0;
    }
    
    .explorer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-actions {
        width: 100%;
        justify-content: space-between;
    }
}