/* ==========================================
   1. VARIABEL WARNA & DESAIN UTAMA
   ========================================== */
:root {
    --primary-color: #3b82f6;      
    --primary-hover: #2563eb;      
    --bg-body: #f8fafc;            
    --bg-card: #ffffff;            
    --text-main: #1e293b;          
    --text-muted: #64748b;         
    --border-color: #e2e8f0;       
    
    --success: #10b981;            
    --warning: #f59e0b;            
    --purple: #8b5cf6;             
    --danger: #ef4444;             
    --info: #0ea5e9;               
    --dark-btn: #334155;           
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 30px 15px;
    line-height: 1.5;
}

/* ==========================================
   2. CONTAINER & HEADER
   ========================================== */
.container {
    max-width: 1050px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================
   3. NOTIFIKASI / ALERT
   ========================================== */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    animation: fadeIn 0.4s ease-in-out;
}

.alert.success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================
   4. TOOLBAR, INPUT, & TOMBOL
   ========================================== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: #f1f5f9;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.toolbar-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="text"], 
input[type="password"], 
input[type="file"], 
select {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button, .btn-settings {
    padding: 9px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

button:hover, .btn-settings:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

button:active, .btn-settings:active { transform: translateY(0); }

.btn-settings { background-color: var(--dark-btn); }
.btn-settings:hover { background-color: #1e293b; }

.btn-logout { background-color: var(--danger); margin-left: 10px; }
.btn-logout:hover { background-color: #b91c1c; }

/* ==========================================
   5. PROGRESS BAR UPLOAD
   ========================================== */
.progress-container {
    display: none;
    width: 100%;
    margin-top: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--success);
    width: 0%;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    text-align: center;
}

/* ==========================================
   6. NAVIGASI BREADCRUMB
   ========================================== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================================
   7. TABEL FILE & FOLDER (KHUSUS DESKTOP)
   ========================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    transition: background-color 0.2s ease;
}

tr:hover td { background-color: #f8fafc; }

.icon {
    font-size: 18px;
    margin-right: 8px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-download { background-color: var(--success); }
.btn-copy     { background-color: var(--info); }
.btn-rename   { background-color: var(--warning); color: #ffffff; }
.btn-move     { background-color: var(--purple); }
.btn-delete   { background-color: var(--danger); }

/* ==========================================
   8. MODAL POP-UP
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(4px);          
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ==========================================
   9. DESAIN HALAMAN LOGIN
   ========================================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: scaleUp 0.4s ease;
}

.login-card h2 {
    margin-bottom: 25px;
    color: var(--text-main);
}

.login-card input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
}

.login-card button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}