/* 
 * Universal File Storage - Premium Admin Theme
 * Optimized for Compact & Professional Look
 */

:root {
    --primary-color: #0d6efd;
    --dark-bg: #1e2227;
    --sidebar-width: 240px;
    --text-small: 0.85rem;
    --text-base: 0.95rem;
}

body {
    font-size: var(--text-base);
    background-color: #f4f6f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sidebar Styling */
.sidebar {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #2c3e50 0%, #000000 100%);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar .nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border-radius: 0;
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left: 4px solid var(--primary-color);
}

.sidebar h4 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Compact Components */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-body {
    padding: 1rem; /* Reduced padding */
}

.form-control, .form-select {
    font-size: var(--text-small);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.btn {
    font-size: var(--text-small);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

h1, .h2 { font-size: 1.5rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 600; }

/* Table Compactness */
.table { font-size: var(--text-small); }
.table th, .table td { padding: 0.5rem; vertical-align: middle; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar { width: 100%; min-height: auto; position: relative; }
    main { padding: 1rem !important; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
