/* 
 * ملاحظة: تم إزالة المتغيرات من هنا لأنها موجودة في theme-colors.css
 * يتم استخدام المتغيرات من نظام الثيمات الموحد
 */
:root {
    /* Font Sizes - Increased for better readability */
    --font-size-xs: 1rem; /* 16px */
    --font-size-sm: 1.125rem; /* 18px */
    --font-size-base: 1.25rem; /* 20px */
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 1.875rem; /* 30px */
    --font-size-2xl: 2.25rem; /* 36px */
    --font-size-3xl: 3rem; /* 48px */

    /* Icon Colors - تستخدم ألوان الثيم */
    --icon-blue: #3b82f6;
    --icon-green: #10b981;
    --icon-red: var(--primary-color);
    --icon-yellow: #f59e0b;
    --icon-purple: #8b5cf6;
    --icon-cyan: #06b6d4;
    --icon-pink: #ec4899;
    --icon-orange: #f97316;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Header - يستخدم ألوان الثيم */
.main-header {
    position: relative;
    z-index: 1030;
    box-shadow: var(--shadow);
}

.main-header .logo {
    background: var(--primary-dark) !important;
    color: white !important;
    font-weight: bold;
    border-bottom: 0 solid transparent;
    height: 60px;
    line-height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-header .logo-img {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.main-header .navbar {
    background: var(--navbar-bg) !important;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    min-height: 60px;
}

.main-header .navbar .nav > li > a {
    color: var(--navbar-text) !important;
    height: 60px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.main-header .navbar .nav > li > a:hover,
.main-header .navbar .nav > li > a:active,
.main-header .navbar .nav > li > a:focus,
.main-header .navbar .nav .open > a,
.main-header .navbar .nav .open > a:hover,
.main-header .navbar .nav .open > a:focus {
    background-color: var(--navbar-hover) !important;
    color: var(--navbar-text) !important;
}

.main-header .sidebar-toggle {
    color: var(--navbar-text) !important;
    height: 60px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.main-header .sidebar-toggle:hover {
    background-color: var(--navbar-hover) !important;
    color: var(--navbar-text) !important;
}

/* Sidebar - يستخدم ألوان الثيم */
.main-sidebar {
    background: var(--sidebar-bg) !important;
    box-shadow: var(--shadow);
    padding-top: 60px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-menu > li.header {
    background-color: transparent;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 1.125rem; /* Increased from 1rem to 18px */
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
}

.sidebar-menu > li > a {
    color: var(--sidebar-text) !important;
    border-left: 3px solid transparent;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
    font-size: 1.25rem; /* Increased from 1.125rem to 20px */
    font-weight: 500;
    padding: 12px 15px;
    position: relative;
    overflow: hidden;
}

.sidebar-menu > li:hover > a {
    color: white !important;
    background: var(--sidebar-hover) !important;
    padding-right: 25px;
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.sidebar-menu > li.active > a {
    color: #ffffff !important;
    background: var(--sidebar-active) !important;
    border-left-color: var(--primary-color);
    box-shadow: inset 3px 0 0 #f87171, 0 4px 15px rgba(248, 113, 113, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-menu > li > .treeview-menu {
    background-color: rgba(0, 0, 0, 0.15);
    padding-left: 0;
}

/* Sidebar Icons - Modern & Colorful Font Awesome 5 */
.sidebar-menu > li > a > i {
    width: 32px;
    text-align: center;
    font-size: 1.6em; /* Increased from 1.4em */
    margin-left: 8px;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.sidebar-menu > li:hover > a > i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.sidebar-menu > li.active > a > i {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
}

/* Enhanced Colorful Sidebar Icons - Font Awesome 5 */
.sidebar-menu > li:nth-child(2) > a > i { color: #3b82f6; text-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.sidebar-menu > li:nth-child(3) > a > i { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.sidebar-menu > li:nth-child(4) > a > i { color: #8b5cf6; text-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.sidebar-menu > li:nth-child(5) > a > i { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.sidebar-menu > li:nth-child(6) > a > i { color: #06b6d4; text-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.sidebar-menu > li:nth-child(7) > a > i { color: #ec4899; text-shadow: 0 0 8px rgba(236, 72, 153, 0.4); }
.sidebar-menu > li:nth-child(8) > a > i { color: #f97316; text-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.sidebar-menu > li:nth-child(9) > a > i { color: #6366f1; text-shadow: 0 0 8px rgba(99, 102, 241, 0.4); }
.sidebar-menu > li:nth-child(10) > a > i { color: #84cc16; text-shadow: 0 0 8px rgba(132, 204, 22, 0.4); }
.sidebar-menu > li:nth-child(11) > a > i { color: #ef4444; text-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.sidebar-menu > li:nth-child(12) > a > i { color: #06b6d4; text-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.sidebar-menu > li:nth-child(13) > a > i { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.sidebar-menu > li:nth-child(14) > a > i { color: #8b5cf6; text-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.sidebar-menu > li:nth-child(15) > a > i { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.sidebar-menu > li:nth-child(16) > a > i { color: #ec4899; text-shadow: 0 0 8px rgba(236, 72, 153, 0.4); }
.sidebar-menu > li:nth-child(17) > a > i { color: #f97316; text-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.sidebar-menu > li:nth-child(18) > a > i { color: #6366f1; text-shadow: 0 0 8px rgba(99, 102, 241, 0.4); }
.sidebar-menu > li:nth-child(19) > a > i { color: #84cc16; text-shadow: 0 0 8px rgba(132, 204, 22, 0.4); }
.sidebar-menu > li:nth-child(20) > a > i { color: #ef4444; text-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.sidebar-menu > li:nth-child(21) > a > i { color: #06b6d4; text-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.sidebar-menu > li:nth-child(22) > a > i { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.sidebar-menu > li:nth-child(23) > a > i { color: #8b5cf6; text-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.sidebar-menu > li:nth-child(24) > a > i { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.sidebar-menu > li:nth-child(25) > a > i { color: #ec4899; text-shadow: 0 0 8px rgba(236, 72, 153, 0.4); }
.sidebar-menu > li:nth-child(26) > a > i { color: #f97316; text-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.sidebar-menu > li:nth-child(27) > a > i { color: #6366f1; text-shadow: 0 0 8px rgba(99, 102, 241, 0.4); }

.sidebar-menu > li.active > a > i {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
}

/* Treeview Menu */
.sidebar-menu .treeview-menu > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.25rem; /* Increased from 1.125rem to 20px */
    transition: all 0.3s ease;
    padding-left: 2rem;
}

.sidebar-menu .treeview-menu > li > a:hover {
    color: #ffffff;
    padding-right: 25px;
}

.sidebar-menu .treeview-menu > li > a > i {
    font-size: 1.2em; /* Increased from var(--font-size-xs) to 1.2em */
    margin-left: 5px;
    color: #cbd5e1; /* Light color for sub-menu icons */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sidebar-menu .treeview-menu > li > a:hover > i {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.1);
}

.user-panel > .info, .user-panel > .info > a {
    color: white;
}

.user-panel {
    padding: 15px;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
}

.branch-name {
    color: white;
    padding-right: 10px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Content */
.content-wrapper {
    background-color: var(--bg-body);
    margin-top: 0;
}

.content-header > h1 {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Cards / Boxes - Modern Light Design */
.box {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--text-primary);
}

/* .box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
} */

.box-header {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    background: var(--card-header-bg);
    position: relative;
}

.box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.box-header .box-title {
    font-weight: bold;
    font-size: 28px;
}

.box-body {
    padding: 1.5rem;
}

/* Small Boxes (Dashboard) - Ultra Modern Light Design */
.small-box {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    position: relative;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    color: var(--text-light);
}

.small-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.small-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.small-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.small-box > .inner {
    padding: 2.5rem 2rem 1.5rem 7rem;
    position: relative;
    z-index: 2;
}

/* Card title and description sizing - Modern typography */
.small-box > .inner h3 {
    font-size: var(--font-size-xl);
    margin: 0 0 8px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.small-box > .inner p {
    margin: 0;
    color: #ffffff;
    opacity: 0.9;
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
}

/* Full-card clickable focus + hover enhancements */
.small-box-link,
.small-box-link .small-box {
    display: block;
    text-decoration: none;
    color: inherit;
}

.small-box-link .small-box {
    cursor: pointer;
}

.small-box-link:focus,
.small-box-link .small-box:focus-within {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
    transform: translateY(-6px) scale(1.02);
}

/* subtle inner gradient/overlay for depth */
.small-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 30%, rgba(0,0,0,0.1) 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}

/* Modern icon styling with subtle animations */
.small-box .modern-icon {
    position: absolute;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    font-size: 4.75rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    z-index: 5;
    pointer-events: none;
}

.small-box .icon {
    position: absolute;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    font-size: 4.5rem;
    opacity: 0.25;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    filter: blur(0.3px);
    /* color: rgba(255, 255, 255, 0.65); */
    color: white
}

.small-box:hover .icon {
    opacity: 0.35;
    transform: translateY(-50%) scale(1.08) rotate(6deg);
    filter: blur(0);
    color: rgba(255, 255, 255, 0.9);
}

.small-box-footer {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 1.25rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.small-box-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-hover), transparent);
    opacity: 0.3;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.small-box-footer:hover {
    background: var(--primary-hover);
    padding-right: 28px;
    color: var(--text-light);
    transform: translateX(4px);
    opacity: 0.9;
}

.small-box-footer i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.small-box-footer:hover i {
    transform: translateX(-5px);
}

/* Enhanced Small Box Colors - كل كارت بلون مختلف من الثيم */
/* ملاحظة: الألوان المباشرة محددة في theme-colors.css لكل theme */
.small-box.bg-customers,
.small-box.bg-suppliers,
.small-box.bg-orders,
.small-box.bg-workers,
.small-box.bg-checks,
.small-box.bg-invoices,
.small-box.bg-movements,
.small-box.bg-reports {
    /* الألوان محددة مباشرة في theme-colors.css لكل theme */
}

/* Icon Accent Glows */
.small-box .modern-icon.fas.fa-users { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(167, 139, 250, 0.75); }
.small-box .modern-icon.fas.fa-truck { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(249, 168, 212, 0.8); }
.small-box .modern-icon.fas.fa-cogs { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(125, 211, 252, 0.75); }
.small-box .modern-icon.fas.fa-wrench { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(110, 231, 183, 0.75); }
.small-box .modern-icon.fas.fa-car { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(253, 186, 116, 0.8); }
.small-box .modern-icon.fas.fa-file-invoice-dollar { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(103, 232, 249, 0.75); }
.small-box .modern-icon.fas.fa-exchange-alt { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(253, 164, 175, 0.8); }
.small-box .modern-icon.fas.fa-chart-bar { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(252, 211, 77, 0.75); }
.small-box .modern-icon.fas.fa-question-circle { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(196, 181, 253, 0.75); }
.small-box .modern-icon.fas.fa-envelope { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(6, 182, 212, 0.7); }
.small-box .modern-icon.fas.fa-bell { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(245, 158, 11, 0.75); }
.small-box .modern-icon.fas.fa-user-shield { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(239, 68, 68, 0.75); }
.small-box .modern-icon.fas.fa-cog { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(100, 116, 139, 0.7); }
.small-box .modern-icon.fas.fa-sign-out-alt { color: rgba(255,255,255,0.98); text-shadow: 0 0 22px rgba(220, 38, 38, 0.8); }

/* Icon Hover Effects */
.small-box:hover .modern-icon {
    transform: translateY(-50%) scale(1.15) rotate(-4deg);
    opacity: 1;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

/* Footer */
.main-footer {
    background: var(--card-bg);
    border-top: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 2rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 -4px 12px var(--shadow-lg);
}

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

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

/* Tables */
.table {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border: 1px solid var(--border-color);
}

.table > thead > tr > th {
    background-color: #ffffff;
    color: #212529;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    padding: 12px;
}

.table > tbody > tr > td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.table-hover > tbody > tr:hover {
    background-color: #ffffff; /* Pure white for light theme */
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    background-color: transparent;
}

/* Table Icons & Actions */
.table a {
    display: inline-block;
    margin: 0 3px;
    transition: transform 0.2s;
}

.table a:hover {
    transform: scale(1.15);
}

/* Colorful Table Icons with Backgrounds */
.table .fa-edit, .table .fa-pencil {
    color: var(--icon-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 16px;
}

.table .fa-trash, .table .fa-remove, .table .delete i {
    color: var(--icon-red);
    background: rgba(239, 68, 68, 0.1);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 16px;
}

.table .fa-eye, .table .fa-search {
    color: var(--icon-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 16px;
}

.table .fa-print {
    color: var(--icon-purple);
    background: rgba(139, 92, 246, 0.1);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 16px;
}

.table .fa-download {
    color: var(--icon-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 16px;
}

/* Header Actions (Add, Export, etc.) */
.ic_pr_xel {
    float: left;
}

.ic_pr_xel a {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.ic_pr_xel a:hover {
    transform: scale(1.1);
}

.ic_pr_xel .fa-plus {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 20px;
    box-shadow: var(--shadow);
}

.ic_pr_xel .fa-file-excel-o {
    color: white;
    background: linear-gradient(135deg, var(--icon-green), #059669);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 20px;
    box-shadow: var(--shadow);
}

.ic_pr_xel .fa-print {
    color: white;
    background: linear-gradient(135deg, var(--icon-purple), #7c3aed);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 20px;
    box-shadow: var(--shadow);
}

/* Pagination */
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination > li > a {
    color: var(--primary-color);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.pagination > li > a:hover {
    color: var(--primary-hover);
    background-color: var(--sidebar-hover);
    border-color: var(--primary-color);
}

/* Footer Enhancements */
.main-footer {
    background: var(--card-bg);
    border-top: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 2rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 -4px 12px var(--shadow-lg);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--primary-color));
}

.main-footer .pull-right {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

.main-footer strong {
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 1px 2px var(--shadow-sm);
}

/* Content Wrapper */
.content-wrapper {
    background-color: var(--bg-body);
    margin-top: 0;
    min-height: calc(100vh - 120px);
}

.content-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(to bottom, var(--card-bg), var(--bg-body));
}

.content-header > h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced Typography */
body {
    background-color: var(--bg-body);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

/* Form Enhancements */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15); /* Blue focus ring for dark theme */
    outline: none;
}

.btn {
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .content-header {
        padding: 1rem;
    }
    
    .content-header > h1 {
        font-size: 1.5rem;
    }
    
    .main-footer {
        padding: 1.5rem 1rem;
        text-align: center;
        font-size: 1rem;
    }
    
    .main-footer .pull-right {
        float: none !important;
        margin-top: 0.5rem;
    }
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-color);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.5rem;
    color: var(--text-color);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15); /* Blue focus ring for dark theme */
}

/* Alert/Notification Styling */
.alert {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #a7f3d0;
}

.alert-danger {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fca5a5;
}

.alert-warning {
    background: linear-gradient(135deg, #92400e, #b45309);
    color: #fcd34d;
}

.alert-info {
    background: linear-gradient(135deg, #1e40af, #0c4a6e);
    color: #7dd3fc;
}

/* Modal Enhancements */
.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

/* Progress Bars */
.progress {
    border-radius: var(--radius);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* Badge Enhancements */
.badge {
    border-radius: 20px;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
}

.dropdown-menu > li > a {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover {
    background-color: var(--bg-body);
    color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb > li + li:before {
    color: var(--text-muted);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Branch Selection Modern UI */
.branch-selection {
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.05)); /* Red gradient background */
    border-radius: var(--radius);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.branch-selection .branch-title {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.branch-selection .branch-title i {
    margin-left: 8px;
    color: var(--primary-color); /* Red icon */
}

.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-btn {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.branch-btn:before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent); /* Red shimmer */
    transition: right 0.5s;
}

.branch-btn:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.branch-btn:hover:before {
    right: 100%;
}

.branch-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.branch-btn.active:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-lg);
}

.branch-btn i {
    margin-left: 10px;
    font-size: 1em;
    transition: transform 0.3s ease;
}

.branch-btn:hover i {
    transform: scale(1.1);
}

/* Login Page Branch Selection */
.branch-selection-login {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.branch-btn-login {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.branch-btn-login:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.branch-btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.branch-btn-login:hover:before {
    left: 100%;
}

.branch-btn-login.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.branch-btn-login.active:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.branch-btn-login i {
    font-size: 1.2em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.branch-btn-login:hover i {
    transform: scale(1.1);
}

.branch-btn-login .branch-name {
    flex: 1;
    text-align: center;
}

.branch-btn-login .check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.1em;
}

.branch-btn-login.active .check-icon {
    opacity: 1;
}

/* Colorful Branch Icons */
.branch-btn-login:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.branch-btn-login:nth-child(1):hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.branch-btn-login:nth-child(1).active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.branch-btn-login:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.branch-btn-login:nth-child(2):hover {
    background: linear-gradient(135deg, #e683f0 0%, #e64c62 100%);
}

.branch-btn-login:nth-child(2).active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.branch-btn-login:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.branch-btn-login:nth-child(3):hover {
    background: linear-gradient(135deg, #45a0f3 0%, #00e8f3 100%);
}

.branch-btn-login:nth-child(3).active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.branch-btn-login:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.branch-btn-login:nth-child(4):hover {
    background: linear-gradient(135deg, #3dd671 0%, #32e8c5 100%);
}

.branch-btn-login:nth-child(4).active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.branch-btn-login:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.branch-btn-login:nth-child(5):hover {
    background: linear-gradient(135deg, #e8668a 0%, #edc238 100%);
}

.branch-btn-login:nth-child(5).active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.branch-btn-login:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: var(--text-color);
}

.branch-btn-login:nth-child(6):hover {
    background: linear-gradient(135deg, #96d8d5 0%, #ebbdd1 100%);
}

.branch-btn-login:nth-child(6).active {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.branch-btn-login:nth-child(7) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.branch-btn-login:nth-child(7):hover {
    background: linear-gradient(135deg, #ed8a8e 0%, #ebbddd 100%);
}

.branch-btn-login:nth-child(7).active {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.branch-btn-login:nth-child(8) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: var(--text-color);
}

.branch-btn-login:nth-child(8):hover {
    background: linear-gradient(135deg, #ede0c0 0%, #eaab8d 100%);
}

.branch-btn-login:nth-child(8).active {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

branch-btn.active i {
    color: white;
}

/* Sidebar branch buttons (compact colorful items) */
.sidebar-branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-btn-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid transparent;
    color: #e6eefc;
    text-decoration: none;
    transition: all 0.25s ease;
}

.branch-btn-sidebar .branch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 16px;
    flex: 0 0 36px;
    background: rgba(255,255,255,0.03); /* subtle fallback */
}

.branch-btn-sidebar .branch-name {
    flex: 1;
    color: inherit;
    font-weight: 600;
}

    .branch-btn-sidebar .check-icon {
        display: inline-flex;
        opacity: 0;
        transition: opacity 0.2s ease;
        color: rgba(255,255,255,0.95);
    }

.branch-btn-sidebar:hover {
    transform: translateX(-6px);
}

.branch-btn-sidebar:focus-visible,
.branch-btn-login:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
    border-color: var(--primary-color);
}

.branch-btn-sidebar.active {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: translateX(-8px);
    border-color: rgba(255,255,255,0.12);
}

.branch-btn-sidebar.active .check-icon {
    opacity: 1;
}

/* colorful icons on sidebar: nth-child coloring */
.sidebar-branch-buttons a:nth-child(1) .branch-icon { background: linear-gradient(135deg,#667eea,#764ba2);} /* purple */
.sidebar-branch-buttons a:nth-child(2) .branch-icon { background: linear-gradient(135deg,#f093fb,#f5576c);} /* pink */
.sidebar-branch-buttons a:nth-child(3) .branch-icon { background: linear-gradient(135deg,#4facfe,#00f2fe);} /* blue */
.sidebar-branch-buttons a:nth-child(4) .branch-icon { background: linear-gradient(135deg,#43e97b,#38f9d7);} /* green */
.sidebar-branch-buttons a:nth-child(5) .branch-icon { background: linear-gradient(135deg,#fa709a,#fee140);} /* warm */
.sidebar-branch-buttons a:nth-child(6) .branch-icon { background: linear-gradient(135deg,#a8edea,#fed6e3);} /* mint */
.sidebar-branch-buttons a:nth-child(7) .branch-icon { background: linear-gradient(135deg,#ff9a9e,#fecfef);} /* soft red */
.sidebar-branch-buttons a:nth-child(8) .branch-icon { background: linear-gradient(135deg,#ffecd2,#fcb69f);} /* yellow orange */

/* adapt icon color for dark sidebar */
.main-sidebar .branch-btn-sidebar .branch-name { color: #e6eefc; }

/* Current Branch Indicator */
.current-branch {
    background: linear-gradient(135deg, var(--icon-green), #059669);
    color: white;
    border-color: var(--icon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Branch Selection Responsive */
@media (max-width: 768px) {
    .branch-selection {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .branch-btn {
        padding: 10px 12px;
        font-size: var(--font-size-sm);
    }
}

/* Sidebar Dropdown (compact) */
.branch-select-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
}

.branch-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
}

.branch-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
    border-color: var(--primary-color);
}

.btn-branch-go {
    background: linear-gradient(135deg, var(--icon-blue), var(--icon-purple));
    border: none;
    color: white;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-branch-go:hover { transform: translateX(-4px); box-shadow: var(--shadow-md); }

.branch-select-wrapper .fa-exchange-alt { transform: rotate(90deg); }

/* Modern Red Theme Small Box Colors */
.bg-green-active {
    background: linear-gradient(135deg, #f87171, #ef4444) !important; /* Red gradient */
    color: white !important;
}

.bg-aqua {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important; /* Orange gradient */
    color: white !important;
}

.bg-yellow {
    background: linear-gradient(135deg, #f97316, #ea580c) !important; /* Orange gradient */
    color: white !important;
}

.bg-red {
    background: linear-gradient(135deg, #991b1b, #7f1d1d) !important; /* Dark red gradient */
    color: white !important;
}

/* Modern Login Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color), #991b1b, #7f1d1d);
    min-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 550px;
    padding: 0 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.login-logo {
    font-size: var(--font-size-3xl);
    margin-bottom: 10px;
    display: block;
}

.login-title {
    color: white;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin: 5px 0 0;
}

.login-body {
    padding: 40px 30px 30px;
}

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

.form-group-modern label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.form-group-modern.focused label {
    color: var(--primary-color);
    font-weight: 700;
}

.form-control-modern.has-content {
    background: white;
    border-color: var(--primary-color);
}

.form-control-modern::-webkit-input-placeholder {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.form-control-modern:focus::-webkit-input-placeholder {
    color: #d1d5db;
}

.select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

.btn-login {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    margin-top: 5px;
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-footer {
    text-align: center;
    padding: 20px 30px 30px;
    color: #6b7280;
    font-size: var(--font-size-sm);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 0 15px;
    }

    .login-card {
        border-radius: 15px;
    }

    .login-header {
        padding: 30px 20px 20px;
    }

    .login-body {
        padding: 30px 20px 20px;
    }

    .login-title {
        font-size: var(--font-size-xl);
    }

    .branch-selection-login {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .branch-btn-login {
        padding: 14px 16px;
        min-height: 50px;
        font-size: var(--font-size-sm);
    }
}

/* ====================================
   Dashboard Small Box Background Classes
   ==================================== */

/* These classes are used in the dashboard home.php for different categories */
/* ملاحظة: الألوان المباشرة محددة في theme-colors.css لكل theme */
.small-box.bg-customers,
.small-box.bg-suppliers,
.small-box.bg-orders,
.small-box.bg-workers,
.small-box.bg-checks,
.small-box.bg-invoices,
.small-box.bg-movements,
.small-box.bg-reports {
    /* الألوان محددة مباشرة في theme-colors.css لكل theme */
}

/* Legacy AdminLTE background classes support */
.small-box.bg-aqua {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--info-dark) 100%) !important;
}

.small-box.bg-green {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%) !important;
}

.small-box.bg-yellow {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-dark) 100%) !important;
}

.small-box.bg-red {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%) !important;
}

/* info-box icon backgrounds */
.info-box-icon.bg-aqua {
    background-color: var(--info-color) !important;
}

.info-box-icon.bg-green {
    background-color: var(--success-color) !important;
}

.info-box-icon.bg-yellow {
    background-color: var(--warning-color) !important;
}

.info-box-icon.bg-red {
    background-color: var(--danger-color) !important;
}
