/* File: assets/css/style.css - gemini-code-1785467808018 Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Theme Palette - gemini-code-1785467808018 Design System */
    --sidebar-bg: #4c11ac !important;
    --sidebar-active-bg: #5f1bd3 !important;
    --primary: #6B21A8 !important;
    --primary-hover: #581C87 !important;
    --primary-light: #F3E8FF !important;
    --purple-header: #8B5CF6 !important;
    --table-header-bg: #EEF2FF !important;

    /* Attributes / Alerts */
    --success: #10B981 !important;
    --success-bg: #D1FAE5 !important;
    --info: #3B82F6 !important;
    --info-bg: #DBEAFE !important;
    --warning: #F59E0B !important;
    --warning-bg: #FEF3C7 !important;
    --danger: #EF4444 !important;
    --danger-bg: #FEE2E2 !important;

    /* Backgrounds & UI Layout */
    --bg-body: #F4F5FB !important;
    --bg-sidebar: #4c11ac !important;
    --bg-sidebar-active: #5f1bd3 !important;
    --bg-card: #FFFFFF !important;
    --text-main: #1F2937 !important;
    --text-muted: #6B7280 !important;
    --text-sidebar: rgba(255, 255, 255, 0.75) !important;
    --text-sidebar-hover: #FFFFFF !important;
    --border-color: #E5E7EB !important;
    --border-glass: rgba(255, 255, 255, 0.4) !important;
    --border-radius: 18px !important;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    --transition-speed: 0.25s !important;
}

/* --- Dark Mode Override --- */
[data-theme="dark"] {
    --bg-body: #11111d;
    --bg-card: rgba(30, 30, 45, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    --hover-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    --bg-sidebar: #1e1e2f;
    --bg-sidebar-active: #11111d;
    --text-sidebar: #76778c;
}

/* --- Custom Background Overrides --- */
[data-bg="lavender"] {
    --bg-body: #f3f0ff;
}

[data-bg="gray"] {
    --bg-body: #f8fafc;
}

[data-bg="aurora"] {
    --bg-body: #0b091a;
}

[data-bg="classic"] {
    --bg-body: #f3f5f9;
}

/* --- Dynamic Accent Overrides --- */
[data-accent="purple"] {
    --primary: #8950fc;
    --primary-glow: rgba(137, 80, 252, 0.15);
}

[data-accent="blue"] {
    --primary: #2575fc;
    --primary-glow: rgba(37, 117, 252, 0.15);
}

[data-accent="orange"] {
    --primary: #ff6b35;
    --primary-glow: rgba(255, 107, 53, 0.15);
}

[data-accent="teal"] {
    --primary: #1bc5bd;
    --primary-glow: rgba(27, 197, 189, 0.15);
}

[data-accent="pink"] {
    --primary: #e83e8c;
    --primary-glow: rgba(232, 62, 140, 0.15);
}

body {
    background-color: var(--bg-body);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* --- Layout Wrapper --- */
.wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar Styling (Aurora Sleek) --- */
#sidebar {
    min-width: 270px;
    max-width: 270px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-brand {
    padding: 30px 25px 20px 25px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-brand i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar .user-profile {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

#sidebar .user-profile img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(137, 80, 252, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed);
}

#sidebar .user-profile:hover img {
    transform: rotate(5deg) scale(1.05);
}

#sidebar .user-info h6 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

#sidebar .user-info small {
    font-size: 0.8rem;
    color: var(--text-sidebar);
}

#sidebar ul.components {
    padding: 15px 0;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

#sidebar ul li {
    margin: 4px 15px;
}

#sidebar ul li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    border-radius: 12px;
}

#sidebar ul li a i {
    width: 25px;
    font-size: 1.15rem;
    margin-right: 12px;
    text-align: center;
    transition: transform var(--transition-speed);
}

#sidebar ul li a:hover {
    color: var(--text-sidebar-hover);
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul li a:hover i {
    transform: translateX(3px);
}

#sidebar ul li a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(137, 80, 252, 0.7) 100%);
    box-shadow: 0 8px 20px rgba(137, 80, 252, 0.3);
    font-weight: 600;
}

#sidebar ul li a.active i {
    color: #fff;
}

#sidebar .nav-category {
    padding: 15px 20px 8px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

/* --- Main Content Area --- */
#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 30px;
    background: var(--bg-body);
}

/* --- Glassmorphic Cards & Panels --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- Stats Cards (Neon Gradients) --- */
.stat-card-gradient {
    border-radius: var(--border-radius);
    padding: 24px;
    height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    transition: transform var(--transition-speed);
}

.stat-card-gradient:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card-gradient:hover::after {
    transform: scale(1.2);
}

.bg-grad-teal {
    background: linear-gradient(135deg, #1bc5bd 0%, #0bb7af 100%);
    box-shadow: 0 8px 20px rgba(27, 197, 189, 0.25);
}

.bg-grad-indigo {
    background: linear-gradient(135deg, #8950fc 0%, #6632d7 100%);
    box-shadow: 0 8px 20px rgba(137, 80, 252, 0.25);
}

.bg-grad-orange {
    background: linear-gradient(135deg, #ff6b35 0%, #d84b16 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.bg-grad-dark {
    background: linear-gradient(135deg, #2d3a4b 0%, #1e2530 100%);
    box-shadow: 0 8px 20px rgba(45, 58, 75, 0.25);
}

.stat-icon {
    font-size: 2.2rem;
    opacity: 0.85;
}

/* --- Premium Priority Badges --- */
.badge-priority {
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.priority-high {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(246, 78, 96, 0.25);
    box-shadow: 0 0 12px rgba(246, 78, 96, 0.15);
    animation: pulse-red 2s infinite;
}

.priority-medium {
    background: var(--warning-glow);
    color: var(--warning);
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.priority-low {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(27, 197, 189, 0.25);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 78, 96, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(246, 78, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(246, 78, 96, 0);
    }
}

/* --- Stepper Component for Workflow Progress --- */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 10px;
    margin-bottom: 25px;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e4e6ef;
    transform: translateY(-50%);
    z-index: 1;
}

.stepper-progress {
    position: absolute;
    top: 50%;
    left: 5%;
    height: 4px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width var(--transition-speed) ease-in-out;
}

.stepper-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e4e6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stepper-item.active .stepper-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.stepper-item.completed .stepper-circle {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.stepper-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.stepper-item.active .stepper-label {
    color: var(--primary);
}

.stepper-item.completed .stepper-label {
    color: var(--success);
}

/* --- Clean Search Autocomplete & Filter Drop-zones --- */
.drop-zone {
    border: 2px dashed rgba(137, 80, 252, 0.25);
    background: var(--primary-glow);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(137, 80, 252, 0.08);
}

.drop-zone i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* --- Officer Avatar Initials --- */
.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.88rem;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* --- Interactive Table & Hover Enhancements --- */
.table-responsive {
    overflow-x: auto;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid #ebedf3;
    padding: 15px 10px;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(137, 80, 252, 0.02) !important;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 11px 18px;
    border: 1px solid #e4e6ef;
    background-color: #fff;
    font-size: 0.92rem;
    transition: all var(--transition-speed);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c5c5d3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a5a5b3;
}

/* --- Glassmorphic Static Card / Panels (No Hover Animation) --- */
.glass-card-static {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* --- Compact & Sleek UI Overrides (Tiny Look) --- */
#content {
    padding: 16px 20px !important;
}

#sidebar .sidebar-brand {
    padding: 20px 25px 15px 25px !important;
}

#sidebar .user-profile {
    padding: 16px 25px !important;
}

#sidebar ul.components {
    padding: 8px 0 !important;
}

#sidebar ul li {
    margin: 2px 15px !important;
}

#sidebar ul li a {
    padding: 10px 16px !important;
}

.table thead th {
    padding: 10px 12px !important;
    font-size: 0.72rem !important;
}

.table tbody td {
    padding: 10px 12px !important;
    font-size: 0.76rem !important;
}

.form-control,
.form-select,
.choices__inner {
    padding: 8px 14px !important;
    min-height: 38px !important;
}

.form-control:not(textarea) {
    height: 38px !important;
}

.btn-xs {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
}

.stat-card-gradient {
    padding: 16px !important;
    height: 130px !important;
}

.stat-icon {
    font-size: 1.8rem !important;
}

/* Snug overrides for Bootstrap spacing helpers in the layout */
.p-4 {
    padding: 1rem !important;
    /* Reduces padding from 1.5rem to 1rem */
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 0.8rem !important;
}

.mt-4 {
    margin-top: 0.8rem !important;
}

.g-4,
.gy-4 {
    --bs-gutter-y: 0.8rem !important;
}

.g-4,
.gx-4 {
    --bs-gutter-x: 0.8rem !important;
}

/* --- High-Density Layout Overrides (Ultra Compact System View) --- */
.card,
.modal-content,
.form-control,
.form-select,
.btn,
.badge,
.alert,
.dropdown-menu {
    border-radius: 6px !important;
}

body,
.form-control,
.form-select,
.btn,
table,
.modal,
.card,
.dropdown-menu,
.nav-link,
p,
span,
div,
td,
th {
    font-size: 0.73rem !important;
}

h1,
.h1 {
    font-size: 1.15rem !important;
}

h2,
.h2 {
    font-size: 1.05rem !important;
}

h3,
.h3 {
    font-size: 0.95rem !important;
}

h4,
.h4 {
    font-size: 0.88rem !important;
}

h5,
.h5 {
    font-size: 0.8rem !important;
}

h6,
.h6 {
    font-size: 0.74rem !important;
}

/* Modal & Card Spacing Overrides */
.card-body,
.modal-body,
.panel-body {
    padding: 0.5rem !important;
}

.card-header,
.modal-header,
.panel-header {
    padding: 0.35rem 0.5rem !important;
}

.card-footer,
.modal-footer,
.panel-footer {
    padding: 0.35rem 0.5rem !important;
}

/* Margin and Padding Compaction */
.mb-4,
.my-4,
.mt-4 {
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.mb-3,
.my-3,
.mt-3 {
    margin-bottom: 0.4rem !important;
    margin-top: 0.4rem !important;
}

.p-4,
.p-3,
.p-2 {
    padding: 0.5rem !important;
}

.py-4,
.py-3,
.py-2 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.px-4,
.px-3,
.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Grid Layout Compaction */
.row {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 0.5rem !important;
}

/* Forms Compaction */
.form-control,
.form-select {
    padding: 0.25rem 0.5rem !important;
    min-height: 28px !important;
    height: auto !important;
}

.btn {
    padding: 0.2rem 0.5rem !important;
    min-height: 28px !important;
    line-height: 1.2 !important;
}

.btn-sm,
.btn-xs {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.7rem !important;
    min-height: auto !important;
}

/* Table Cells Padding Reduction */
.table th,
.table td {
    padding: 0.25rem 0.4rem !important;
    vertical-align: middle !important;
}

/* Sidebar and Navbar Layout Compaction */
#sidebar {
    min-width: 200px !important;
    max-width: 200px !important;
}

#sidebar .sidebar-brand {
    padding: 10px 15px !important;
    font-size: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .user-profile {
    padding: 10px 15px !important;
}

#sidebar .user-profile img {
    width: 32px !important;
    height: 32px !important;
    margin-right: 8px !important;
    border-radius: 6px !important;
}

#sidebar ul.components {
    padding: 5px 0 !important;
}

#sidebar ul li {
    margin: 2px 8px !important;
}

#sidebar ul li a {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
}

#sidebar ul li a i {
    width: 18px !important;
    font-size: 0.95rem !important;
    margin-right: 8px !important;
}

/* Header & Navigation Compaction */
#navbar,
.navbar,
.topbar {
    min-height: 50px !important;
    height: 50px !important;
}

.navbar-brand {
    padding: 5px 10px !important;
    font-size: 0.9rem !important;
}

/* File Explorer Modal High-Density Layout overrides */
#fileLettersModal .modal-content {
    height: 96vh !important;
}

#fileLettersModal .modal-body {
    height: calc(96vh - 40px) !important;
}

#fileLettersSidebarList .sidebar-letter-item {
    padding: 0.3rem 0.5rem !important;
}

/* ==========================================================================
   ULTRA-PREMIUM MODAL ANIMATIONS & GLASSMORPHIC STYLING
   ========================================================================== */

/* 1. Glassmorphic Backdrop Blur */
.modal-backdrop.show {
    opacity: 0.6 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: #0f172a !important;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease !important;
}

/* 2. Keyframe Animations for Smooth Pop-In & Out */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.91) translateY(24px);
    }
    65% {
        opacity: 1;
        transform: scale(1.012) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 3. Smooth Entrance & Transition for Bootstrap Modals */
.modal.fade .modal-dialog {
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease !important;
    transform: scale(0.91) translateY(24px) !important;
    opacity: 0;
}

.modal.show .modal-dialog {
    animation: modalPopIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

/* 4. Glassmorphism & Shadow Container */
.modal-content {
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    border: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 5. Header Visual Polish */
.modal-header {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 1.15rem 1.5rem;
    position: relative;
}

/* 6. Form Controls Focus Animations */
.modal-body .form-control,
.modal-body .form-select {
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #8950fc !important;
    box-shadow: 0 0 0 4px rgba(137, 80, 252, 0.15) !important;
    transform: translateY(-1px);
}

/* 7. Action Button Hover Micro-Interactions */
.actions-cockpit-panel button,
.modal-body button,
.modal-body .btn,
.modal-footer button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.actions-cockpit-panel button:hover,
.modal-body .btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.actions-cockpit-panel button:active,
.modal-body .btn:active {
    transform: translateY(0) scale(0.99);
}

/* 8. Glowing Accent Badges */
.animate-pulse-glow {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(137, 80, 252, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(137, 80, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(137, 80, 252, 0);
    }
}

/* ==========================================================================
   GEMINI-CODE-1785467808018 MASTER COMPONENT DESIGN SYSTEM OVERRIDES
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #F4F5FB !important;
    color: #1F2937 !important;
}

/* 1. SIDEBAR & NAVIGATION */
#sidebar, .sidebar {
    background: #4c11ac !important;
    color: #FFFFFF !important;
}

#sidebar .sidebar-brand, .sidebar .brand {
    background: #4c11ac !important;
    color: #FFFFFF !important;
}

#sidebar ul li a, .nav-item a {
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

#sidebar ul li a:hover, .nav-item a:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#sidebar ul li.active > a, #sidebar ul li a.active, .nav-item.active a {
    color: #FFFFFF !important;
    background: #5f1bd3 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    border-left: 4px solid #A855F7 !important;
}

/* 2. CARDS & CONTAINERS */
.card, .card-bg {
    background: #FFFFFF !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #E5E7EB !important;
}

.card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
}

/* 3. ATTRIBUTES & ALERTS */
.alert {
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.alert-info { background: #DBEAFE !important; color: #1D4ED8 !important; border: none !important; }
.alert-warning { background: #FEF3C7 !important; color: #B45309 !important; border: none !important; }
.alert-success { background: #D1FAE5 !important; color: #047857 !important; border: none !important; }
.alert-danger { background: #FEE2E2 !important; color: #B91C1C !important; border: none !important; }

.alert-outline-info { border: 1.5px solid #3B82F6 !important; color: #1D4ED8 !important; background: transparent !important; }
.alert-outline-warning { border: 1.5px solid #F59E0B !important; color: #B45309 !important; background: transparent !important; }
.alert-outline-success { border: 1.5px solid #10B981 !important; color: #047857 !important; background: transparent !important; }
.alert-outline-danger { border: 1.5px solid #EF4444 !important; color: #B91C1C !important; background: transparent !important; }

/* 4. FORM CONTROLS & DENSE INPUTS */
.form-control {
    border-radius: 10px !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: #FFFFFF !important;
    color: #1F2937 !important;
}

.form-control-xs {
    height: 32px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #E5E7EB !important;
    font-size: 12px !important;
    background: #FFFFFF !important;
}

.form-control:focus, .form-control-xs:focus, .form-select:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}

.form-label { font-size: 13px !important; font-weight: 600 !important; color: #1F2937 !important; }
.form-label-xs { font-size: 11px !important; font-weight: 700 !important; color: #6B7280 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }

.select2-mock-xs {
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    background: #FFFFFF !important;
    min-height: 32px !important;
}

.select2-tag-xs {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper i { position: absolute; left: 14px; color: #6B7280; font-size: 14px; }
.input-icon-wrapper .form-control { padding-left: 40px !important; }

/* 5. BUTTONS & ACTIONS */
.btn-primary { background: #6B21A8 !important; color: #FFFFFF !important; border: none !important; }
.btn-primary:hover { background: #581C87 !important; }

.btn-secondary { background: #F3E8FF !important; color: #6B21A8 !important; border: none !important; }
.btn-secondary:hover { background: #E9D5FF !important; }

.btn-outline { background: transparent !important; border: 1.5px solid #6B21A8 !important; color: #6B21A8 !important; }
.btn-outline:hover { background: #6B21A8 !important; color: #FFFFFF !important; }

.btn-info { background: #3B82F6 !important; color: #FFFFFF !important; border: none !important; }
.btn-warning { background: #F59E0B !important; color: #FFFFFF !important; border: none !important; }
.btn-danger { background: #EF4444 !important; color: #FFFFFF !important; border: none !important; }
.btn-success { background: #10B981 !important; color: #FFFFFF !important; border: none !important; }

.btn-pill { border-radius: 50px !important; }

.btn-icon-square { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; border: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon-xs { width: 26px; height: 26px; border-radius: 6px; font-size: 11px; border: none; display: inline-flex; align-items: center; justify-content: center; }

.btn-icon-edit { background: #D1FAE5 !important; color: #10B981 !important; }
.btn-icon-delete { background: #FEE2E2 !important; color: #EF4444 !important; }

/* 6. FILTER TABS & SEARCH */
.filter-group { display: flex; gap: 8px; background: #F3F4F6; padding: 6px; border-radius: 50px; width: fit-content; }
.filter-btn { padding: 8px 20px; border-radius: 50px; border: none; font-size: 13px; font-weight: 600; background: transparent; color: #6B7280; cursor: pointer; transition: all 0.2s; }
.filter-btn.active { background: #8B5CF6 !important; color: #FFFFFF !important; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3) !important; }

.search-input-xs { display: flex; align-items: center; background: #F3F4F6; padding: 4px 12px; border-radius: 50px; gap: 8px; width: 220px; height: 32px; }
.search-input-xs input { border: none; background: transparent; outline: none; font-size: 12px; width: 100%; }

/* 7. BADGES & PROGRESS */
.badge-primary { background: #F3E8FF !important; color: #6B21A8 !important; }
.badge-success { background: #D1FAE5 !important; color: #047857 !important; }
.badge-info { background: #DBEAFE !important; color: #1D4ED8 !important; }
.badge-warning { background: #FEF3C7 !important; color: #B45309 !important; }
.badge-danger { background: #FEE2E2 !important; color: #B91C1C !important; }

/* 8. DATA TABLES */
.table-container { border-radius: 12px; overflow: hidden; border: 1px solid #E5E7EB; }
table thead, .table thead { background-color: #EEF2FF !important; }
table th, .table th { color: #6B21A8 !important; font-weight: 700 !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.5px; }

/* 9. MODAL CONTEXTUAL ICONS */
.modal-icon-badge {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.modal-icon-info { background: #DBEAFE !important; color: #3B82F6 !important; }
.modal-icon-warning { background: #FEF3C7 !important; color: #F59E0B !important; }
.modal-icon-danger { background: #FEE2E2 !important; color: #EF4444 !important; }
.modal-icon-success { background: #D1FAE5 !important; color: #10B981 !important; }

/* Executive Summary Metric Card Hover Effect */
.metric-card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.metric-card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.22) !important;
}

/* Executive Summary Metric Cards (Overrides .card background: #ffffff !important) */
.metric-card-inward {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
    border: 0 !important;
    color: #ffffff !important;
}
.metric-card-outward {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    border: 0 !important;
    color: #ffffff !important;
}
.metric-card-overdue {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
    border: 0 !important;
    color: #ffffff !important;
}
.metric-card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.metric-card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.22) !important;
}
/* --- INDUSTRIAL LEVEL PROFESSIONAL UI UPGRADES --- */
/* Custom Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Refined Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: -0.02em;
}

/* Premium Card Hover Effects */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Data Tables Enhancements */
.table {
    border-spacing: 0;
    border-collapse: separate;
}
.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    padding: 12px 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: none !important;
}
.table tbody tr {
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.table tbody tr:hover {
    background-color: #f1f5f9 !important;
}
.table tbody td {
    padding: 16px !important;
    vertical-align: middle;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Premium Button Styling */
.btn {
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 10px var(--primary-glow) !important;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px var(--primary-glow) !important;
    filter: brightness(1.1);
}
.btn-light {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
.btn-light:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Refined Inputs and Focus States */
.form-control, .form-select {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01) !important;
    height: auto !important;
    min-height: 38px !important;
    line-height: 1.5 !important;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

/* Sidebar Active States */
#sidebar {
    box-shadow: 4px 0 24px rgba(0,0,0,0.04) !important;
}
#sidebar ul li a.active {
    background: linear-gradient(90deg, var(--sidebar-active-bg) 0%, rgba(255,255,255,0.05) 100%) !important;
    border-left: 4px solid #fff !important;
    box-shadow: none !important;
}

/* Pill / Badge Styling */
.badge {
    padding: 6px 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    border-radius: 6px !important;
}

/* Table Card Wrapper */
.table-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    background: #fff;
}
.modal .card:hover { transform: none !important; box-shadow: inherit !important; }
