/* ========================================================
   DocuVault DMS - Custom Modern Stylesheet
   ======================================================== */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active-text: #ffffff;
    --sidebar-active-bg: #4f46e5;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Styling */
#sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 1040;
}

#sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 2px 12px;
    transition: all 0.2s ease-in-out;
}

#sidebar .nav-link i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
}

#sidebar .nav-link:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
}

#sidebar .nav-link.active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active-bg);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem 0.4rem;
    color: #475569;
    font-weight: 700;
}

/* Main Content Area */
#main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Stat Card */
.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Table */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-top: none;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.table td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* Upload Dropzone styling */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: #f1f5f9;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -260px;
        position: fixed;
    }
    #sidebar.show {
        margin-left: 0;
    }
}
