/* assets/css/style.css */
:root {
    --primary-color: #4f46e5;
    /* Indigo */
    --primary-hover: #4338ca;
    --sidebar-bg: #111827;
    /* Very dark gray/blue */
    --sidebar-hover: #1f2937;
    --sidebar-active: #374151;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #ffffff;
    --bg-color: #f3f4f6;
    /* Light gray background */
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
}

/* Base UI Adjustments */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Sidebar Styling */
#sidebarMenu {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.sidebar-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-brand i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.sidebar .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sidebar .nav-link:hover {
    color: var(--sidebar-text-active);
    background-color: var(--sidebar-hover);
}

.sidebar .nav-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    color: var(--sidebar-text-active);
    background-color: var(--primary-color);
    /* Indigo accent for active */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.sidebar .nav-link.active i {
    opacity: 1;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 1.5rem 1rem;
}

/* Card Enhancements */
.card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* Folder & Stat Cards */
.folder-card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.folder-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--primary-color);
}

.folder-icon {
    font-size: 2.5rem;
    color: #fbbf24;
    /* Amber */
}

/* Content Area */
main {
    background-color: var(--bg-color);
    padding-top: 1.5rem !important;
}

.page-header {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Tables */
.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
    border-bottom-color: var(--border-color);
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* Drag Area */
.drag-area {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}

.drag-area:hover,
.drag-area.active {
    background: #eff6ff;
    border-color: var(--primary-color);
}