/* Modern Admin Panel CSS - Professional Dashboard */

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #ea580c;
    --info-color: #0891b2;
    --purple-color: #7c3aed;
    --pink-color: #db2777;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-width: 260px;
    --header-height: 60px;
    --border-radius: 6px;
    --border-radius-sm: 4px;
    --border-radius-lg: 8px;
    --box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
    --box-shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease;
    --transition-fast: all 0.15s ease;
    --sidebar-bg: #0f172a;
    --sidebar-muted: #64748b;
    --sidebar-active: #1e293b;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-700);
    background: #f8fafc;
    overflow: auto;
}

#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern Header */
#header {
    height: 60px;
    background: linear-gradient(to right, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: calc(100% - 260px);
    padding: 0;
    transition: width 0.3s ease;
}

#header .container-fluid {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    width: 100%;
    max-width: none;
    margin: 0;
}

#header .navbar-brand {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

#header .navbar-brand img {
    height: 32px;
    width: auto;
}

#nav-profile .dropdown-menu h6.dropdown-header {
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topbar {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 300px;
    max-width: 380px;
    transition: all 0.3s ease;
}

.topbar-search:focus-within {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: #ffffff;
}

.topbar-search i {
    color: #94a3b8;
    font-size: 15px;
    transition: all 0.25s ease;
}

.topbar-search:focus-within i {
    color: #1e3a8a;
}

.topbar-search .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    height: auto;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    flex: 1;
}

.topbar-search .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.topbar-search .form-control:focus {
    outline: none;
}

.topbar-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 6px;
    display: none;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.topbar-search-results.show {
    display: block;
}

.topbar-search-results .dropdown-item {
    font-size: 13px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
    border-radius: 4px;
    border-left: 2px solid transparent;
    color: #334155;
}

.topbar-search-results .dropdown-item:hover {
    background: #f8fafc;
    border-left-color: #1e3a8a;
    color: #0f172a;
}

.topbar-search-results .dropdown-item.search-result-item {
    display: flex;
    align-items: flex-start;
}

.topbar-search-results .dropdown-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Header Navigation Styling */
#header .navbar-nav {
    display: flex;
    gap: 8px;
    margin: 0;
    align-items: center;
}

#header .nav-item {
    display: flex;
    align-items: center;
}

#header .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

#header .nav-link:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
}

#header .nav-link i {
    font-size: 16px;
}

.topbar-search-results .dropdown-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

.topbar-search-results .dropdown-item small {
    color: #64748b;
    font-size: 11px;
}

.topbar-surface {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
}

.topbar-actions {
    gap: 6px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: all 0.25s ease;
    font-size: 15px;
}

.btn-icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e3a8a;
}

.btn-icon:active {
    background: #e2e8f0;
}

.topbar-surface .btn-icon {
    background: transparent;
    border-color: transparent;
    color: #64748b;
}

.topbar-surface .btn-icon:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #6366f1;
}

#header .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    height: 38px;
}

#header .nav-link:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

#header .nav-link i {
    font-size: 16px;
}

#header .nav-item {
    display: flex;
    align-items: center;
}

#header .navbar-nav {
    gap: 2px;
}

#header .dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 240px;
    animation: fadeIn 0.2s ease-out;
    position: absolute !important;
    max-width: calc(100vw - 20px);
    right: auto !important;
    left: 0 !important;
}

#header .dropdown-menu.modern-dropdown {
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 4px;
}

#header .dropdown-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

#header .dropdown-header i {
    color: #0f172a;
    font-size: 11px;
}

#header .dropdown-item {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 6px;
    margin: 1px 0;
}

#header .dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
    font-size: 13px;
    color: #64748b;
}

#header .dropdown-item:hover {
    background: #f8fafc;
}

#header .dropdown-item:hover i {
    color: #0f172a;
}

/* Dark Theme Styles - Complete Implementation */
body.theme-dark {
    background: #111827;
    color: #e5e7eb;
}

body.theme-dark #header {
    background: #1f2937;
    border-bottom-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.theme-dark #header .nav-link,
body.theme-dark #header .navbar-brand {
    color: #e2e8f0;
}

body.theme-dark #header .dropdown-item {
    color: #cbd5e1;
}

body.theme-dark #header .dropdown-item:hover {
    background: #334155;
    color: var(--primary-light);
}

body.theme-dark .topbar-search {
    background: #334155;
    border-color: #475569;
}

body.theme-dark .topbar-search i,
body.theme-dark .topbar-search .form-control {
    color: #cbd5e1;
    background: transparent;
}

body.theme-dark .btn-icon {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.theme-dark .btn-icon:hover {
    background: #334155;
    border-color: #6366f1;
    color: #818cf8;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

body.theme-dark .topbar-surface {
    background: #0f172a;
    border-color: #334155;
}

body.theme-dark .topbar-surface .btn-icon {
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
}

body.theme-dark .topbar-surface .btn-icon:hover {
    background: #1e293b;
    border-color: #334155;
    color: #818cf8;
}

/* Dark Theme - Sidebar */
body.theme-dark #column-left {
    background: #000000;
    border-right-color: #1e293b;
}

body.theme-dark #sidebar-header {
    border-bottom-color: #1e293b;
}

body.theme-dark #sidebar-header .sidebar-brand {
    color: #818cf8;
}

body.theme-dark #menu > li > a {
    color: #f1f5f9;
}

body.theme-dark #menu > li > a:hover {
    background: #1e293b;
    color: #818cf8;
}

body.theme-dark #menu > li.active > a {
    background: #1e3a8a;
    color: #f1f5f9;
}

body.theme-dark #menu > li > a i:first-child {
    color: #818cf8;
}

body.theme-dark #menu > li > a:hover i:first-child,
body.theme-dark #menu > li.active > a i:first-child {
    color: #818cf8;
}

body.theme-dark #menu ul {
    background: #1e293b;
    border-left-color: #818cf8;
}

body.theme-dark #menu ul li a {
    color: #cbd5e1;
}

body.theme-dark #menu ul li a i {
    color: #818cf8;
}

body.theme-dark #menu ul li a:hover {
    background: #334155;
    color: #818cf8;
}

body.theme-dark #stats {
    border-top-color: #1e293b;
}

body.theme-dark #stats h6 {
    color: #f1f5f9;
}

body.theme-dark #stats h6 i {
    color: #818cf8;
}

body.theme-dark #stats ul li {
    border-bottom-color: #1e293b;
}

body.theme-dark #stats ul li span {
    color: #e2e8f0;
}

body.theme-dark #stats .progress {
    background: #1e293b;
}

body.theme-dark #content {
    background: #1f2937;
}


body.theme-dark #content::before {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-dark .page-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-bottom-color: #334155;
}

body.theme-dark .page-header h1 {
    color: #f1f5f9;
}

body.theme-dark .breadcrumb-item,
body.theme-dark .breadcrumb-item a {
    color: #94a3b8;
}

body.theme-dark .breadcrumb-item a:hover {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.2);
}

body.theme-dark .card,
body.theme-dark .larkon-card,
body.theme-dark .gradient-stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.theme-dark .card:hover,
body.theme-dark .larkon-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.theme-dark .larkon-card .card-header {
    background: #334155;
    border-bottom: 1px solid #475569;
    color: #e2e8f0;
}

body.theme-dark .larkon-card .card-header i {
    color: var(--primary-light);
}

body.theme-dark .larkon-card .card-body {
    background: #1e293b;
}

body.theme-dark .larkon-card .btn-group .btn {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

body.theme-dark .larkon-card .btn-group .btn:hover {
    background: #334155;
    border-color: var(--primary-color);
    color: var(--primary-light);
}

body.theme-dark .larkon-card .btn-group .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.theme-dark .gradient-stat-card .stat-label {
    color: #94a3b8;
}

body.theme-dark .gradient-stat-card .stat-value {
    color: #f1f5f9;
}

body.theme-dark .table-responsive {
    background: #1e293b;
}

body.theme-dark table.table thead {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-bottom-color: #475569;
}

body.theme-dark table.table thead th,
body.theme-dark table.table thead th a {
    color: #cbd5e1;
}

body.theme-dark table.table tbody td {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

body.theme-dark table.table tbody tr:hover {
    background: rgba(51, 65, 85, 0.5);
}

body.theme-dark .form-control,
body.theme-dark .form-select {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background: #1e293b;
    border-color: var(--primary-color);
    color: #f1f5f9;
}

body.theme-dark .form-label {
    color: #cbd5e1;
}

body.theme-dark footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-top-color: #334155;
}

body.theme-dark footer p {
    color: #94a3b8;
}

body.theme-dark .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .dropdown-menu .dropdown-item {
    color: #cbd5e1;
}

body.theme-dark .dropdown-menu .dropdown-item:hover {
    background: #334155;
    color: var(--primary-light);
}

body.theme-dark .dropdown-divider {
    border-top-color: #334155;
}

body.theme-dark .dropdown-header {
    color: #94a3b8;
}

/* Dark Mode - All Panels & Content Areas */
body.theme-dark .panel,
body.theme-dark .panel-default,
body.theme-dark .well,
body.theme-dark .card-header,
body.theme-dark .card-body,
body.theme-dark .card-footer {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .panel-heading {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

body.theme-dark .panel-body {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

body.theme-dark .dashboard-widget-wrapper,
body.theme-dark .dashboard-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.theme-dark .modal-content {
    background: #1e293b;
    color: #e2e8f0;
}

body.theme-dark .modal-header {
    background: #334155;
    border-bottom-color: #475569;
}

body.theme-dark .modal-footer {
    background: #0f172a;
    border-top-color: #475569;
}

body.theme-dark .text-muted {
    color: #64748b !important;
}

body.theme-dark .btn-light {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

body.theme-dark .btn-light:hover {
    background: #475569;
    color: #e2e8f0;
}

body.theme-dark .metric-comparison {
    background: #0f172a;
}

body.theme-dark .metric-item {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .metric-item .metric-value {
    color: #f1f5f9;
}

body.theme-dark .metric-item .metric-label {
    color: #94a3b8;
}

body.theme-dark .topbar-search-results {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .topbar-search-results .dropdown-item {
    color: #cbd5e1;
}

body.theme-dark .topbar-search-results .dropdown-item:hover {
    background: #334155;
    border-left-color: var(--primary-light);
}

body.theme-dark .topbar-search-results .dropdown-item small {
    color: #64748b;
}

#header .dropdown-item {
    padding: 10px 20px;
    color: var(--gray-700);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

#header .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

#header .rounded-circle {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

#header .badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
}

/* Modern Sidebar - Enhanced Professional Design */
#column-left {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    height: calc(100vh - 60px);
}

/* Sidebar Collapsed State */
body.sidebar-collapsed #column-left {
    width: 0;
    border-right-width: 0;
}

body.sidebar-collapsed #header {
    width: 100%;
}

#column-left::before {
    display: none;
}

#column-left::-webkit-scrollbar {
    width: 6px;
}

#column-left::-webkit-scrollbar-track {
    background: transparent;
}

#column-left::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

#column-left::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Sidebar Header with Logo */
#sidebar-header {
    padding: 8px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: auto;
}

#sidebar-header img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

#sidebar-header .sidebar-brand {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

#navigation {
    display: none;
}

#column-left::-webkit-scrollbar {
    width: 6px;
}

#column-left::-webkit-scrollbar-track {
    background: transparent;
}

#column-left::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

#column-left::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

#menu {
    list-style: none;
    padding: 12px 12px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

#menu > li {
    margin: 0;
    height: auto;
    display: block;
}

#menu > li + li {
    margin-top: 0;
}

#menu > li > a {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    margin: 2px 0;
}

#menu > li > a:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

#menu > li.active > a {
    background: #eff6ff;
    color: #1e3a8a;
    border-left: 3px solid #1e3a8a;
    padding-left: 11px;
}

#menu > li > a .chevron-icon {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.25s ease;
    display: inline;
}

#menu > li > a:not(.collapsed) .chevron-icon {
    transform: rotate(180deg);
}

#menu > li > a i:first-child {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: #1e3a8a;
    transition: var(--transition-fast);
}

#menu > li > a:hover i:first-child {
    color: #1e3a8a;
}

#menu > li.active > a i:first-child {
    color: #1e3a8a;
}

#menu ul {
    list-style: none;
    padding: 4px 0 4px 12px;
    background: transparent;
    border-left: 2px solid rgba(30, 58, 138, 0.3);
    margin: 4px 12px 4px 12px;
    border-radius: 0;
}

#menu ul li {
    margin: 2px 0;
}

#menu ul li a {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    margin: 0 4px;
}

#menu ul li a i {
    font-size: 8px;
    color: #1e3a8a;
}

#menu ul li a:hover {
    color: #1e3a8a;
    background: #eff6ff;
}

/* Sidebar Stats Area */
#stats {
    padding: 16px 12px;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

#stats h6 {
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#stats h6 i {
    color: #1e3a8a;
    font-size: 14px;
}

#stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#stats ul li {
    border-bottom: 1px solid #e2e8f0;
}

#stats ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#stats ul li span {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

#stats .progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

#stats .progress-bar {
    height: 100%;
    border-radius: 3px;
}

/* Content Area - Professional Enhanced */
#content {
    margin-left: 260px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
    background: #f8fafc;
    position: relative;
}

body.sidebar-collapsed #content {
    margin-left: 0;
}

#content::before {
    content: '';
    position: fixed;
    top: 60px;
    left: 260px;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    z-index: -1;
    transition: left 0.3s ease;
}

#content .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

/* .row > [class*="col-"] > .card,
.row > [class*="col-"] > .dashboard-card {
    width: 100%;
    height: 100%;
} */

/* Page Header - Enhanced Professional Design */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-header .container-fluid {
    position: relative;
}

.page-header .d-flex {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.page-header h1 i {
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin: 10px 0 0;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb-item {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    background: rgba(148, 163, 184, 0.08);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 6px;
    color: var(--gray-400);
    font-size: 16px;
    font-weight: 400;
}

/* Cards - Professional Enhanced */
.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-800);
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    color: #64748b;
    margin-right: 8px;
    font-size: 14px;
}

.card-body {
    padding: 16px;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #9aa4b2;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.dashboard-card.success::before,
.dashboard-card.danger::before,
.dashboard-card.warning::before,
.dashboard-card.info::before {
    background: #9aa4b2;
}

.dashboard-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    background: #f3f4f6;
    color: var(--gray-600);
    box-shadow: none;
}

.dashboard-card.success .card-icon,
.dashboard-card.danger .card-icon,
.dashboard-card.warning .card-icon,
.dashboard-card.info .card-icon {
    background: #f3f4f6;
    color: var(--gray-600);
    box-shadow: none;
}

.dashboard-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.dashboard-card p {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

.dashboard-card .trend {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.dashboard-card .trend.up,
.dashboard-card .trend.down {
    background: #f3f4f6;
    color: var(--gray-600);
}


/* Tables - Professional Enhanced */
.table-responsive {
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

table.table {
    margin: 0;
    width: 100%;
}

table.table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

table.table thead th {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border: none;
    white-space: nowrap;
}

table.table thead th a {
    color: var(--gray-700);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-weight: 700;
}

table.table thead th a:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

table.table tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
}

table.table tbody tr {
    transition: var(--transition);
}

table.table tbody tr:hover {
    background: #f8fafc;
}

table.table tbody tr:last-child td {
    border-bottom: none;
}

/* Forms - Professional Enhanced */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}


.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-check-input {
    border: 2px solid var(--gray-300);
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: none;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--success-color);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: var(--info-color);
}

/* Modern Toast Notifications */
#alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

#alert .alert {
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

#alert .alert.fade.show {
    animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#alert .alert.fade {
    animation: slideOutRight 0.3s ease-in-out;
}

#alert .alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #86efac;
    color: #065f46;
    border-left: 4px solid #10b981;
}

#alert .alert-success i {
    color: #10b981;
    font-size: 20px;
}

#alert .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fef5f5 100%);
    border-color: #fca5a5;
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
}

#alert .alert-danger i {
    color: #ef4444;
    font-size: 20px;
}

#alert .alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9e7 100%);
    border-color: #fde047;
    color: #78350f;
    border-left: 4px solid #f59e0b;
}

#alert .alert-warning i {
    color: #f59e0b;
    font-size: 20px;
}

#alert .alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-color: #93c5fd;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

#alert .alert-info i {
    color: #3b82f6;
    font-size: 20px;
}

#alert .alert strong {
    font-weight: 600;
    flex: 1;
}

#alert .btn-close {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

#alert .btn-close:hover {
    opacity: 1;
}

body.theme-dark #alert .alert {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.theme-dark #alert .alert-success {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    border-color: #10b981;
    color: #ecfdf5;
}

body.theme-dark #alert .alert-danger {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #ef4444;
    color: #fecaca;
}

body.theme-dark #alert .alert-warning {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #fde047;
    color: #fef3c7;
}

body.theme-dark #alert .alert-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #93c5fd;
    color: #dbeafe;
}

.alert i {
    font-size: 22px;
}

.alert .btn-close {
    margin-left: auto;
}

/* Pagination */
.pagination {
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
}

.pagination .page-link {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
    background: var(--white);
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
}

/* Footer - Professional Enhanced */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 0;
    margin-top: auto;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-color), var(--info-color));
    opacity: 0.3;
}

footer .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer p i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    #column-left {
        transform: translateX(-100%);
    }

    #column-left.active {
        transform: translateX(0);
    }

    #header {
        margin-left: 0;
    }

    #content,
    footer {
        margin-left: 0;
    }

    /* Tablet Header Adjustments */
    #header .container-fluid {
        padding: 0 14px;
        gap: 10px;
    }

    .topbar-search {
        min-width: 280px;
    }

    #header .navbar-brand img {
        height: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    /* Mobile Header Improvements */
    #header {
        height: 60px;
        padding: 0;
        width: 100% !important;
        margin-left: 0 !important;
    }

    #header .container-fluid {
        padding: 0 12px;
        gap: 8px;
    }

    #column-left {
        width: 240px;
        transform: translateX(-100%);
    }

    body.sidebar-open #column-left {
        transform: translateX(0);
    }

    #content {
        margin-left: 0 !important;
        margin-top: 60px;
    }

    .dropdown-menu {
        min-width: 220px;
    }

    .dropdown-menu .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 16px;
    }

    .nav-link img {
        height: 32px;
        width: 32px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .dashboard-card h3 {
        font-size: 24px;
    }

    .card-body {
        padding: 16px;
    }

    /* Mobile Input Adjustments */
    .form-control,
    .form-select {
        font-size: 16px;
        padding: 10px 12px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Mobile Table Adjustments */
    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 8px 6px;
    }

    /* Mobile Modal Adjustments */
    .modal-header {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-footer {
        padding: 12px;
    }
}

/* Extra Small Devices (max 576px) */
@media (max-width: 576px) {
    #header {
        height: 56px;
        width: 100% !important;
    }

    #header .container-fluid {
        padding: 0 10px;
        gap: 6px;
    }

    #content {
        margin-left: 0 !important;
        margin-top: 56px;
    }

    #header .navbar-brand {
        font-size: 12px;
    }

    #header .navbar-brand img {
        height: 24px;
    }

    #button-menu {
        padding: 6px 8px;
        font-size: 16px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 14px;
    }

    .nav-link img {
        height: 28px;
        width: 28px;
    }

    .dropdown-menu {
        min-width: 200px;
        font-size: 13px;
        max-width: calc(100vw - 16px);
        position: absolute !important;
    }

    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }

    .dropdown-header {
        display: none !important;
    }

    /* Mobile: Show only icons for buttons */
    #button-setting {
        font-size: 0;
    }

    #button-setting i {
        font-size: 16px;
    }

    .dropdown-menu .dropdown-item {
        padding: 8px 10px;
    }

    .badge {
        font-size: 10px;
        padding: 2px 4px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
        padding: 8px 10px;
    }

    .btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 6px 4px;
    }

    .modal {
        --bs-modal-margin: 10px;
    }

    .modal-content {
        border-radius: 8px;
    }

    .page-header {
        padding: 12px 0;
    }

    .page-header h1 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .gradient-stat-card {
        min-height: auto !important;
    }

    .chart-container {
        max-height: 300px;
    }
}

/* Dashboard Grid Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gradient-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    min-height: 100px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gradient-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gradient-stat-card.primary {
    border-left: 4px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.gradient-stat-card.success {
    border-left: 4px solid #059669;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.gradient-stat-card.warning {
    border-left: 4px solid #d97706;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.gradient-stat-card.info {
    border-left: 4px solid #0284c7;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.gradient-stat-card.purple {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.gradient-stat-card.primary .stat-icon {
    background: #eff6ff;
    color: #2563eb;
}

.gradient-stat-card.success .stat-icon {
    background: #f0fdf4;
    color: #059669;
}

.gradient-stat-card.warning .stat-icon {
    background: #fffbeb;
    color: #d97706;
}

.gradient-stat-card.info .stat-icon {
    background: #f0f9ff;
    color: #0284c7;
}

.gradient-stat-card.purple .stat-icon {
    background: #faf5ff;
    color: #7c3aed;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.stat-trend.up {
    color: #059669;
}

.stat-trend.down {
    color: #dc2626;
}

.stat-trend i {
    font-size: 11px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.chart-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Utility Classes */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--gray-500); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Statistics Widget */
.statistics-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px;
    box-shadow: var(--box-shadow);
}

.statistics-widget h4 {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 8px;
}

.statistics-widget .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.statistics-widget .trend {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.statistics-widget .trend.up {
    color: var(--success-color);
}

.statistics-widget .trend.down {
    color: var(--danger-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    display: none;
    z-index: 999;
    font-size: 18px;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay p {
    color: var(--white);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}



#stats h6 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    color: var(--sidebar-muted);
}

#stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


#stats ul li:last-child {
    margin-bottom: 0;
}

#stats ul li span {
    font-weight: 600;
    font-size: 13px;
}

#stats .progress {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    margin-top: 6px;
}

#stats .progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Mobile Menu Body Overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

/* Enhanced Input Focus */
.form-group.focused .form-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Loading button state */
button.loading {
    opacity: 0.6;
    pointer-events: none;
}

button.loading i {
    animation: spin 1s linear infinite;
}

/* Badge enhancements - Professional */
.badge {
    font-weight: 600;
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--white);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: var(--white);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: var(--white);
}

.badge-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    color: var(--white);
}

/* Image thumbnail enhancements */
.img-thumbnail {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 6px;
    transition: var(--transition);
}

.img-thumbnail:hover {
    transform: scale(2.5);
    z-index: 100;
    box-shadow: var(--box-shadow-lg);
}

/* Search input enhancement */
input[name="filter_name"],
input[name="filter"] {
    position: relative;
}

input.has-value {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

/* Selected count badge */
.selected-count {
    font-size: 12px;
    vertical-align: middle;
    margin-left: 10px;
    animation: fadeIn 0.3s ease-out;
}

/* Formatted price styling */
.formatted-price {
    font-weight: 600;
    color: var(--gray-900);
}

/* Status badges in tables */
.table .badge {
    min-width: 50px;
}

/* Improved dropdown menus */
.dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

/* Better form spacing */
.form-group {
    position: relative;
}

/* Improved breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 16px;
    color: var(--gray-400);
}

/* Better button groups */
.btn-group .btn {
    margin: 0;
}

/* Improved dropdown toggle */
.dropdown-toggle::after {
    margin-left: 8px;
}

/* Enhanced modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 16px;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Print styles */
@media print {
    #header,
    #column-left,
    .page-header .btn,
    .scroll-to-top,
    footer {
        display: none !important;
    }
    
    #content {
        margin-left: 0;
    }
    
    .table {
        border: 1px solid #000;
    }
}

/* ==================== PROFESSIONAL DASHBOARD STYLES ==================== */

/* Dashboard Grid Layout */
.larkon-dashboard {
    gap: 16px !important;
}

/* Enhanced Card Styles */
.larkon-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}

.larkon-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.larkon-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
}

.larkon-card .card-header .d-flex {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    gap: 8px;
}

.larkon-card .card-header i {
    color: var(--primary-color);
    font-size: 16px;
}

.larkon-card .card-body {
    padding: 18px;
    background: white;
}

/* Time Range Button Group */
.larkon-card .btn-group .btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    transition: all 0.2s ease;
    border-radius: 6px !important;
}

.larkon-card .btn-group .btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.larkon-card .btn-group .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Gradient Stat Card */
.gradient-stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.gradient-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
    opacity: 0;
    transition: var(--transition);
}

.gradient-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-stat-card:hover::before {
    opacity: 1;
}

.gradient-stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.gradient-stat-card .stat-icon i {
    color: var(--white);
}

.gradient-stat-card.primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
}

.gradient-stat-card.success .stat-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.4);
}

.gradient-stat-card.warning .stat-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.4);
}

.gradient-stat-card.danger .stat-icon {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    box-shadow: 0 8px 16px -4px rgba(239, 68, 68, 0.4);
}

.gradient-stat-card.info .stat-icon {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
}

.gradient-stat-card.purple .stat-icon {
    background: linear-gradient(135deg, var(--purple-color) 0%, #9333ea 100%);
    box-shadow: 0 8px 16px -4px rgba(168, 85, 247, 0.4);
}

.gradient-stat-card .stat-content {
    position: relative;
    z-index: 1;
}

.gradient-stat-card .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gradient-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1;
}

.gradient-stat-card .stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.gradient-stat-card .stat-trend.up {
    color: var(--success-color);
}

.gradient-stat-card .stat-trend.down {
    color: var(--danger-color);
}

.gradient-stat-card .stat-trend i {
    font-size: 14px;
}

.gradient-stat-card .stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Chart Container Enhancements */
canvas {
    animation: fadeIn 0.6s ease-out;
}

/* Mini Chart Cards */
.mini-chart-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.mini-chart-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Progress Ring */
.progress-ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring .progress-ring-circle {
    stroke: var(--gray-200);
}

.progress-ring .progress-ring-value {
    stroke: var(--primary-color);
}

.progress-ring .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.activity-item {
    position: relative;
    padding-bottom: 20px;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.activity-item .activity-content {
    background: var(--gray-50);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* Metric Comparison Cards */
.metric-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.metric-item {
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
}

.metric-item .metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.metric-item .metric-label {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Animated Counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count {
    animation: countUp 0.6s ease-out;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modern Table Styles */
.table {
  border: none;
  background: white;
}

.theme-dark .table {
  background: #1e293b;
  color: #e2e8f0;
}

.table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
}

.theme-dark .table thead {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom-color: #334155;
}

.table thead th {
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  border: none;
}

.theme-dark .table thead th {
  color: #cbd5e1;
}

.table thead th a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-dark .table thead th a {
  color: #cbd5e1;
}

.table thead th a:hover {
  color: #6366f1;
}

.table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.theme-dark .table tbody tr {
  border-bottom-color: #334155;
}

.table tbody tr:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
}

.theme-dark .table tbody tr:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.table tbody td {
  vertical-align: middle;
  color: #334155;
  border: none;
}

.theme-dark .table tbody td {
  color: #cbd5e1;
}

.table tbody td .img-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.theme-dark .table tbody td .img-thumbnail {
  border-color: #334155;
}

.table .badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}



.table .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
}

.table .btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border: none;
  color: white;
}

/* Table Responsive Wrapper */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-dark .table-responsive {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pagination Styling */
.pagination {
  gap: 6px;
}

.pagination .page-link {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  color: #6366f1;
  padding: 8px 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-dark .pagination .page-link {
  background: #1e293b;
  border-color: #334155;
  color: #a78bfa;
}

.pagination .page-link:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
}

/* List Page Header Enhancements */
#content > .container-fluid > .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: white;
  overflow: hidden;
}

.theme-dark #content > .container-fluid > .card {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


#content > .container-fluid > .card > .card-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

#content > .container-fluid > .card > .card-header h3 i {
  font-size: 24px;
  opacity: 0.9;
}

#content > .container-fluid > .card > .card-body {
  padding: 24px;
}

/* Filter Panel Styling */
.card-header .btn-group {
  gap: 8px;
}

.card-header .btn-light {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.card-header .btn-light:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Form Control Modern Style */
.form-control,
.form-select {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.theme-dark .form-control,
.theme-dark .form-select {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}



/* Empty State */
.table tbody tr td[colspan] {
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

.theme-dark .table tbody tr td[colspan] {
  color: #64748b;
}
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
    }
    
    .larkon-dashboard .col-xl-8 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .larkon-dashboard .col-xl-4 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
}

@media (max-width: 1200px) {
    .larkon-dashboard .col-xl-8,
    .larkon-dashboard .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .larkon-dashboard {
        gap: 14px !important;
    }
    
    .gradient-stat-card {
        padding: 14px;
    }
    
    .gradient-stat-card .stat-value {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .dashboard-extensions {
        gap: 12px !important;
    }
    
    .dashboard-widget-wrapper .card,
    .dashboard-widget-wrapper .panel {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .larkon-card .card-body {
        padding: 14px;
    }
    
    .metric-comparison {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }
    
    .page-header {
        padding: 12px 0;
        margin-bottom: 16px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header h1 i {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .dashboard-widget-wrapper .card-body,
    .dashboard-widget-wrapper .panel-body {
        padding: 14px;
    }
    
    .dashboard-widget-wrapper .map-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-widget-wrapper .customer-overview {
        grid-template-columns: 1fr;
    }
}

/* ==================== DASHBOARD EXTENSION WIDGETS ==================== */

/* Dashboard Widget Enhancements */
.dashboard-widget-wrapper .card-header,
.dashboard-widget-wrapper .panel-heading {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-widget-wrapper .card-header i,
.dashboard-widget-wrapper .panel-heading i {
    font-size: 18px;
    opacity: 0.95;
}

/* Recent Orders Widget */
.dashboard-widget-wrapper .recent-orders-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-widget-wrapper .order-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-widget-wrapper .order-item:last-child {
    border-bottom: none;
}

.dashboard-widget-wrapper .order-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    padding-left: 24px;
    transform: translateX(4px);
}

.dashboard-widget-wrapper .order-info {
    flex: 1;
}

.dashboard-widget-wrapper .order-id {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dashboard-widget-wrapper .order-id i {
    color: var(--primary-color);
    font-size: 16px;
}

.dashboard-widget-wrapper .order-customer {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-widget-wrapper .order-customer i {
    font-size: 11px;
}

.dashboard-widget-wrapper .order-date {
    color: var(--gray-500);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-widget-wrapper .order-date i {
    font-size: 11px;
}

.dashboard-widget-wrapper .order-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--success-color);
    text-align: right;
}

.dashboard-widget-wrapper .order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-widget-wrapper .order-status.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.dashboard-widget-wrapper .order-status.pending:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.2);
}

.dashboard-widget-wrapper .order-status.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.dashboard-widget-wrapper .order-status.completed:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.2);
}

.dashboard-widget-wrapper .order-status.processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.dashboard-widget-wrapper .order-status.processing:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.dashboard-widget-wrapper .order-status.cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.dashboard-widget-wrapper .order-status.cancelled:hover {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

/* Recent Activity Widget Enhancement */
.dashboard-widget-wrapper .activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-widget-wrapper .activity-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 50px;
}

.dashboard-widget-wrapper .activity-item:last-child {
    border-bottom: none;
}

.dashboard-widget-wrapper .activity-item:hover {
    background: var(--gray-50);
}

.dashboard-widget-wrapper .activity-icon {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.dashboard-widget-wrapper .activity-icon.order {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.dashboard-widget-wrapper .activity-icon.customer {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dashboard-widget-wrapper .activity-icon.product {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.dashboard-widget-wrapper .activity-icon.review {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dashboard-widget-wrapper .activity-text {
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.dashboard-widget-wrapper .activity-time {
    color: var(--gray-500);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Order Detail Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.order-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.theme-dark .order-modal-content {
    background: #1e293b;
}

.order-modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-modal-header .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.order-modal-header .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.order-modal-body {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.order-modal-body::-webkit-scrollbar {
    width: 8px;
}

.order-modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.order-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.order-detail-section {
    margin-bottom: 20px;
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.theme-dark .order-detail-section {
    background: #1e293b;
    border-color: #334155;
}

.order-detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.theme-dark .order-detail-section h4 {
    color: #e2e8f0;
    border-bottom-color: #475569;
}

.order-detail-section h4 i {
    color: var(--primary-color);
    font-size: 16px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.order-detail-item {
    background: var(--gray-50);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.order-detail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.theme-dark .order-detail-item {
    background: #334155;
    border-color: #475569;
}

.theme-dark .order-detail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.15);
}

.order-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.theme-dark .order-detail-label {
    color: #94a3b8;
}

.order-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.5;
}

.theme-dark .order-detail-value {
    color: #e2e8f0;
}

.order-detail-value a {
    text-decoration: none;
}

.order-detail-value a:hover {
    text-decoration: underline;
}

.order-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.order-products-table th {
    background: #f8fafc;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-300);
}

.order-products-table th:first-child {
    border-radius: 0;
}

.order-products-table th:last-child {
    border-radius: 0;
}

.theme-dark .order-products-table th {
    background: #334155;
    color: #cbd5e1;
    border-bottom-color: #475569;
}

.order-products-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-700);
}

.theme-dark .order-products-table td {
    border-bottom-color: #475569;
    color: #cbd5e1;
}

.order-products-table tbody tr {
    transition: background-color 0.2s ease;
}

.order-products-table tbody tr:hover {
    background-color: var(--gray-50);
}

.theme-dark .order-products-table tbody tr:hover {
    background-color: #334155;
}

.order-products-table tr:last-child td {
    border-bottom: none;
}

.order-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.theme-dark .order-modal-footer {
    border-top-color: #334155;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Widget Wrapper */
.dashboard-widget-wrapper {
    height: 100%;
}

.dashboard-widget-wrapper .card,
.dashboard-widget-wrapper .panel {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 40px -20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.dashboard-widget-wrapper .card:hover,
.dashboard-widget-wrapper .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), 0 24px 48px -16px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.dashboard-widget-wrapper .card::before,
.dashboard-widget-wrapper .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-color), var(--info-color));
    opacity: 0;
    transition: var(--transition);
}

.dashboard-widget-wrapper .card:hover::before,
.dashboard-widget-wrapper .panel:hover::before {
    opacity: 1;
}

/* Widget Headers */
.dashboard-widget-wrapper .card-header,
.dashboard-widget-wrapper .panel-heading {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.dashboard-widget-wrapper .card-header i,
.dashboard-widget-wrapper .panel-heading i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Widget Body */
.dashboard-widget-wrapper .card-body,
.dashboard-widget-wrapper .panel-body {
    padding: 0;
    flex: 1;
    overflow: auto;
}

/* Make Recent Orders clickable with better styling */
.dashboard-widget-wrapper table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-widget-wrapper table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%) !important;
    transform: translateX(4px);
}

.dashboard-widget-wrapper table tbody tr td:first-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* Activity Timeline Enhancement */
.dashboard-widget-wrapper .list-unstyled > li {
    position: relative;
    padding: 14px 16px 14px 50px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.dashboard-widget-wrapper .list-unstyled > li:last-child {
    border-bottom: none;
}

.dashboard-widget-wrapper .list-unstyled > li:hover {
    background: var(--gray-50);
    padding-left: 56px;
}

.dashboard-widget-wrapper .list-unstyled > li::before {
    content: "\f07a";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.dashboard-widget-wrapper .list-unstyled > li:nth-child(2)::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    content: "\f007";
}

.dashboard-widget-wrapper .list-unstyled > li:nth-child(3)::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    content: "\f466";
}

.dashboard-widget-wrapper .list-unstyled > li:nth-child(4)::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    content: "\f005";
}

.dashboard-widget-wrapper .list-unstyled > li:nth-child(5)::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    content: "\f013";
}

/* Recent Orders Widget */
.dashboard-widget-wrapper .table {
    margin-bottom: 0;
    font-size: 12px;
}

.dashboard-widget-wrapper .table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border: none;
}

.dashboard-widget-wrapper .table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.dashboard-widget-wrapper .table tbody tr {
    transition: var(--transition-fast);
}

.dashboard-widget-wrapper .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.dashboard-widget-wrapper .table tbody tr:last-child td {
    border-bottom: none;
}

/* Order Status Badges */
.dashboard-widget-wrapper .badge {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Recent Activity Widget */
.dashboard-widget-wrapper .list-group {
    margin-bottom: 0;
}

.dashboard-widget-wrapper .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 14px;
    transition: var(--transition-fast);
    background: transparent;
}

.dashboard-widget-wrapper .list-group-item:last-child {
    border-bottom: none;
}

.dashboard-widget-wrapper .list-group-item:hover {
    background: var(--gray-50);
    padding-left: 20px;
}

.dashboard-widget-wrapper .list-group-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-widget-wrapper .list-group-item .text-muted {
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

/* World Map Widget */
.dashboard-widget-wrapper .map-container {
    position: relative;
    height: 300px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.dashboard-widget-wrapper .map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.dashboard-widget-wrapper .map-stat-item {
    text-align: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.dashboard-widget-wrapper .map-stat-item:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.dashboard-widget-wrapper .map-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.dashboard-widget-wrapper .map-stat-label {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity Timeline */
.dashboard-widget-wrapper .activity-timeline {
    position: relative;
    padding-left: 32px;
}

.dashboard-widget-wrapper .activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--gray-300) 100%);
}

.dashboard-widget-wrapper .activity-item {
    position: relative;
    padding-bottom: 20px;
    animation: slideInUp 0.5s ease-out;
}

.dashboard-widget-wrapper .activity-item:last-child {
    padding-bottom: 0;
}

.dashboard-widget-wrapper .activity-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.dashboard-widget-wrapper .activity-content {
    background: var(--gray-50);
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition-fast);
}

.dashboard-widget-wrapper .activity-content:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.dashboard-widget-wrapper .activity-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 13px;
    margin-bottom: 4px;
}

.dashboard-widget-wrapper .activity-description {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.dashboard-widget-wrapper .activity-time {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-widget-wrapper .activity-time i {
    font-size: 10px;
}

/* Customer Overview Widget */
.dashboard-widget-wrapper .customer-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.dashboard-widget-wrapper .customer-stat {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dashboard-widget-wrapper .customer-stat:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.dashboard-widget-wrapper .customer-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.dashboard-widget-wrapper .customer-stat-label {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Chart Containers in Widgets */
.dashboard-widget-wrapper canvas {
    max-height: 280px;
}

/* Empty State */
.dashboard-widget-wrapper .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.dashboard-widget-wrapper .empty-state i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 16px;
    display: block;
}

.dashboard-widget-wrapper .empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Dark Mode for Dashboard Widgets */
body.theme-dark .dashboard-widget-wrapper .card,
body.theme-dark .dashboard-widget-wrapper .panel {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .dashboard-widget-wrapper .card-header,
body.theme-dark .dashboard-widget-wrapper .panel-heading {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
    color: #e2e8f0;
}

body.theme-dark .dashboard-widget-wrapper .table thead th {
    background: #334155;
    color: #cbd5e1;
}

body.theme-dark .dashboard-widget-wrapper .table tbody td {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

body.theme-dark .dashboard-widget-wrapper .table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

body.theme-dark .dashboard-widget-wrapper .list-group-item {
    border-bottom-color: #334155;
    color: #cbd5e1;
}

body.theme-dark .dashboard-widget-wrapper .list-group-item:hover {
    background: #334155;
}

body.theme-dark .dashboard-widget-wrapper .map-container {
    background: #0f172a;
}

body.theme-dark .dashboard-widget-wrapper .map-stat-item {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .dashboard-widget-wrapper .map-stat-value {
    color: #f1f5f9;
}

body.theme-dark .dashboard-widget-wrapper .map-stat-label {
    color: #94a3b8;
}

body.theme-dark .dashboard-widget-wrapper .activity-content {
    background: #334155;
    border-left-color: var(--primary-light);
}

body.theme-dark .dashboard-widget-wrapper .activity-content:hover {
    background: #1e293b;
}

body.theme-dark .dashboard-widget-wrapper .activity-title {
    color: #e2e8f0;
}

body.theme-dark .dashboard-widget-wrapper .activity-description {
    color: #94a3b8;
}

body.theme-dark .dashboard-widget-wrapper .customer-stat {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .dashboard-widget-wrapper .customer-stat-value {
    color: #f1f5f9;
}

body.theme-dark .dashboard-widget-wrapper .customer-stat-label {
    color: #94a3b8;
}

body.theme-dark .dashboard-widget-wrapper .empty-state i {
    color: #475569;
}

body.theme-dark .dashboard-widget-wrapper .empty-state p {
    color: #64748b;
}

/* Modern Form Tabs */
.nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  gap: 4px;
  margin-bottom: 24px;
}

.theme-dark .nav-tabs {
  border-bottom-color: #334155;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 12px 20px;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.theme-dark .nav-tabs .nav-link {
  color: #94a3b8;
}

.nav-tabs .nav-link:hover {
  background: #f8fafc;
  color: #6366f1;
}

.theme-dark .nav-tabs .nav-link:hover {
  background: #334155;
  color: #a78bfa;
}

/* .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
} */

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.nav-tabs .nav-link img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 4px;
}

/* Tab Content Styling */
.tab-content {
  padding: 20px 0;
}

.tab-content > .tab-pane {
  animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Form Elements */
.form-label {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
  margin-bottom: 8px;
}

.theme-dark .form-label {
  color: #cbd5e1;
}

.form-label.required::after {
  content: ' *';
  color: #ef4444;
  font-weight: 700;
}

.row.required .form-label::after {
  content: ' *';
  color: #ef4444;
  font-weight: 700;
}

.input-group {
  border-radius: 10px;
  overflow: hidden;
}

.input-group-text {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
}

.theme-dark .input-group-text {
  background: #334155;
  border-color: #475569;
  color: #94a3b8;
}

.form-control:disabled,
.form-select:disabled {
  background: #f1f5f9;
  opacity: 0.7;
}

.theme-dark .form-control:disabled,
.theme-dark .form-select:disabled {
  background: #0f172a;
}

/* Form Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}


.btn-light {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #475569;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-dark .btn-light {
  background: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

.btn-light:hover {
  background: white;
  border-color: #cbd5e1;
  color: #334155;
}

.theme-dark .btn-light:hover {
  background: #475569;
  border-color: #64748b;
  color: #e2e8f0;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.btn-outline-secondary {
  border: 2px solid #e2e8f0;
  color: #64748b;
  border-radius: 10px;
  font-weight: 600;
}

.theme-dark .btn-outline-secondary {
  border-color: #475569;
  color: #94a3b8;
}

.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.theme-dark .btn-outline-secondary:hover {
  background: #334155;
  border-color: #64748b;
  color: #e2e8f0;
}

/* Invalid Feedback */
.invalid-feedback {
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Alert Boxes */
.alert {
  border-radius: 12px;
  border: none;
  padding: 16px 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert i {
  font-size: 18px;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: #d97706;
  border-left: 4px solid #f59e0b;
}

.theme-dark .alert-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #dc2626;
  border-left: 4px solid #ef4444;
}

.theme-dark .alert-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: #059669;
  border-left: 4px solid #10b981;
}

.theme-dark .alert-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #2563eb;
  border-left: 4px solid #3b82f6;
}

.theme-dark .alert-info {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* Dashboard Widget Card Styles */
.dashboard-widget-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.dashboard-widget-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-dark .dashboard-widget-card {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-dark .dashboard-widget-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gradient-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  color: var(--gray-900);
}

.theme-dark .gradient-header {
  background: #334155;
  border-bottom: 1px solid #475569;
  color: #e2e8f0;
}

.widget-header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.widget-header-content i {
  font-size: 16px;
  color: var(--primary-color);
}

.theme-dark .widget-header-content i {
  color: var(--primary-light);
}

.dashboard-widget-card .card-body {
  padding: 16px;
}

/* Modern Footer Styles */
#footer {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
  margin-top: 24px;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
}

.theme-dark #footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-top-color: #334155;
}

#footer .container-fluid {
  max-width: 1400px;
}

.footer-brand {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-links {
  display: flex;
  gap: 8px;
}

.footer-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.theme-dark .footer-link {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.footer-link:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#footer .text-muted {
  color: #94a3b8 !important;
  font-size: 13px;
}

.theme-dark #footer .text-muted {
  color: #64748b !important;
}

#footer .fw-semibold {
  font-size: 14px;
  color: #334155;
}

.theme-dark #footer .fw-semibold {
  color: #cbd5e1;
}

/* Dark mode support (optional - for future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented if needed */
}
/* Comprehensive Dark Theme Overrides for all white/light elements */
body.theme-dark {
    color: #e5e7eb !important;
}

body.theme-dark * {
    color: #e5e7eb !important;
}

/* Override white backgrounds in dark theme */
body.theme-dark #header,
body.theme-dark #header .topbar,
body.theme-dark .navbar,
body.theme-dark .navbar-light {
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

body.theme-dark .card,
body.theme-dark .form-control,
body.theme-dark .input-group,
body.theme-dark table,
body.theme-dark thead,
body.theme-dark tbody,
body.theme-dark tr,
body.theme-dark td,
body.theme-dark th {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

body.theme-dark .form-control {
    color: #e5e7eb !important;
    background: #1f2937 !important;
    border-color: #4b5563 !important;
}

body.theme-dark .form-control:focus {
    color: #e5e7eb !important;
    background: #374151 !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1) !important;
}

body.theme-dark .form-control::placeholder {
    color: #9ca3af !important;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
    color: #e5e7eb !important;
    background: #1f2937 !important;
    border-color: #4b5563 !important;
}

body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
    color: #e5e7eb !important;
    background: #374151 !important;
    border-color: #2563eb !important;
}

body.theme-dark .dropdown-menu {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.theme-dark .dropdown-item {
    color: #d1d5db !important;
    background: transparent !important;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    color: #e5e7eb !important;
    background: #374151 !important;
}

body.theme-dark .alert {
    color: #e5e7eb !important;
    background: #1f2937 !important;
    border-color: #4b5563 !important;
}

body.theme-dark .modal-content {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

body.theme-dark .modal-header {
    background: #111827 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

body.theme-dark .modal-body {
    color: #e5e7eb !important;
}

body.theme-dark .modal-footer {
    background: #111827 !important;
    border-color: #4b5563 !important;
}

body.theme-dark .btn-secondary {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

body.theme-dark .btn-secondary:hover {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
    color: #f9fafb !important;
}

body.theme-dark label {
    color: #d1d5db !important;
}

body.theme-dark .text-muted {
    color: #9ca3af !important;
}

body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6 {
    color: #f3f4f6 !important;
}

body.theme-dark .breadcrumb {
    background: transparent !important;
}

body.theme-dark li,
body.theme-dark p,
body.theme-dark span,
body.theme-dark div {
    color: #e5e7eb !important;
}

body.theme-dark .list-group-item {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

body.theme-dark .pagination .page-link {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

body.theme-dark .pagination .page-link:hover {
    background: #374151 !important;
    color: #3b82f6 !important;
}

/* Dark Theme - Dashboard Stats Cards */
body.theme-dark .gradient-stat-card {
    background: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

body.theme-dark .gradient-stat-card.primary {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%) !important;
    border-left-color: #3b82f6 !important;
}

body.theme-dark .gradient-stat-card.success {
    background: linear-gradient(135deg, #1f2937 0%, #064e3b 100%) !important;
    border-left-color: #10b981 !important;
}

body.theme-dark .gradient-stat-card.warning {
    background: linear-gradient(135deg, #1f2937 0%, #78350f 100%) !important;
    border-left-color: #f59e0b !important;
}

body.theme-dark .gradient-stat-card.info {
    background: linear-gradient(135deg, #1f2937 0%, #0c4a6e 100%) !important;
    border-left-color: #0ea5e9 !important;
}

body.theme-dark .gradient-stat-card.purple {
    background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%) !important;
    border-left-color: #8b5cf6 !important;
}

body.theme-dark .stat-label {
    color: #9ca3af !important;
}

body.theme-dark .stat-value {
    color: #f3f4f6 !important;
}

body.theme-dark .stat-icon {
    background: #374151 !important;
}

body.theme-dark .gradient-stat-card.primary .stat-icon {
    background: #1e3a8a !important;
    color: #60a5fa !important;
}

body.theme-dark .gradient-stat-card.success .stat-icon {
    background: #064e3b !important;
    color: #6ee7b7 !important;
}

body.theme-dark .gradient-stat-card.warning .stat-icon {
    background: #78350f !important;
    color: #fbbf24 !important;
}

body.theme-dark .gradient-stat-card.info .stat-icon {
    background: #0c4a6e !important;
    color: #22d3ee !important;
}

body.theme-dark .gradient-stat-card.purple .stat-icon {
    background: #4c1d95 !important;
    color: #c084fc !important;
}

body.theme-dark .chart-container {
    background: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

body.theme-dark .chart-container h3 {
    color: #f3f4f6 !important;
}

/* Modal Backdrop Fix */
.modal-backdrop {
    display: none !important;
}

.modal-backdrop.show {
    display: none !important;
}

.modal.show {
    z-index: 1050;
}

/* Category List Enhancements */
#bulk-actions {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#bulk-actions .form-label {
    font-weight: 600;
    color: var(--gray-700);
}

#bulk-actions .form-select,
#bulk-actions .form-select-sm {
    border: 1px solid #cbd5e1;
    background-color: white;
}

#bulk-actions .form-select:focus,
#bulk-actions .form-select-sm:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.category-image-wrapper {
    display: inline-block;
    overflow: hidden;
    border-radius: 6px;
}

.category-image {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-image:hover {
    transform: scale(1.1);
}

.category-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-name-wrapper strong {
    color: var(--gray-800);
}

/* Category Row Hover Effects */
#form-category table tbody tr {
    transition: all 0.2s ease;
}

#form-category table tbody tr:hover {
    background-color: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#form-category table tbody tr.table-active:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

/* Table Header Enhancement */
#form-category table thead.table-light {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid var(--primary-light);
}

#form-category table thead.table-light th {
    font-weight: 600;
    color: var(--gray-700);
    padding: 14px 12px;
    vertical-align: middle;
}

#form-category table thead a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

#form-category table thead a:hover {
    color: var(--primary-dark);
}

/* Sort Order Indicators */
#form-category table thead a.asc::after {
    content: ' ↑';
    font-size: 12px;
}

#form-category table thead a.desc::after {
    content: ' ↓';
    font-size: 12px;
}

/* Category Status Toggle */
.category-status {
    cursor: pointer;
    width: 44px;
    height: 24px;
}

.category-status:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Badge Styling */
.badge {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 12px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    color: #166534 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #991b1b !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #cffafe, #a5f3fc) !important;
    color: #164e63 !important;
}

/* Button Group Styling */
#bulk-actions .btn-group-sm {
    display: flex;
    gap: 8px;
}

#button-bulk-toggle {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    font-weight: 600;
}

#button-bulk-toggle:hover {
    background: linear-gradient(135deg, #0e7490, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.3);
}

/* Responsive Category List */
@media (max-width: 768px) {
    #bulk-actions {
        padding: 12px !important;
    }

    #bulk-actions .row {
        flex-direction: column;
    }

    #bulk-actions .col-auto {
        width: 100% !important;
    }

    #bulk-actions .form-select {
        width: 100%;
    }

    #form-category table {
        font-size: 13px;
    }

    #form-category table th,
    #form-category table td {
        padding: 10px 8px !important;
    }

    .category-image {
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

/* Category List Animation */
#form-category table tbody tr {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
