/* Dark Mode CSS Variables */
:root {
  /* Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ecf9ec;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #ddd;
  --table-hover: #f5f5f5;
  --nav-active-bg: #ff6707;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  /* Dark Mode */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #1b5e20;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --border-color: #444444;
  --table-hover: #2a2a2a;
  --nav-active-bg: #ff6707;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

html {
  position: relative;
  min-height: 100%;
  background-color: #ffffff !important;
}

html.dark-mode {
  background-color: #1a1a1a !important;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: #f5f5f5 !important;
  color: #333333 !important;
  border-top: 1px solid #ddd;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .footer {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-top-color: #444444;
}

body {
  margin-bottom: 60px;
  padding-top: 54px;
  background-color: #ffffff !important;
  color: #333333 !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

/* Theme Toggle Button */
.theme-toggle-dashboard {
  position: relative;
  display: flex;
  gap: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin-right: 20px;
}

.theme-toggle-dashboard button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.theme-toggle-dashboard button:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.9);
}

.theme-toggle-dashboard button.active {
  background: linear-gradient(135deg, #fd7e14 0%, #DD5600 100%);
  color: white;
  border-color: #fd7e14;
}

/* Required icon */
.requiredIcon {
  color: red;
}

/* Suggestion list styles */
ul.suggestionsList {
  background-color: #f5f5f5;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

body.dark-mode ul.suggestionsList {
  background-color: #2a2a2a;
  border-color: #444444;
}

ul.suggestionsList li {
  padding: 12px;
  color: #333333;
  border-bottom: 1px solid #ddd;
}

body.dark-mode ul.suggestionsList li {
  color: #e0e0e0;
  border-bottom-color: #444444;
}

ul.suggestionsList li:last-child {
  border-bottom: none;
}

/* End Suggestion list styles */

/* Changing the bootstrap table stripe colors */
.table {
  background-color: #ffffff;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .table {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #444444;
}

.table-striped > tbody > tr:nth-child(2n+1) > td,
.table-striped > tbody > tr:nth-child(2n+1) > th {
  background-color: #ecf9ec;
  transition: background-color 0.3s ease;
}

body.dark-mode .table-striped > tbody > tr:nth-child(2n+1) > td,
body.dark-mode .table-striped > tbody > tr:nth-child(2n+1) > th {
  background-color: #1b5e20;
}

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

body.dark-mode .table-striped > tbody > tr:hover > td,
body.dark-mode .table-striped > tbody > tr:hover > th {
  background-color: #2a2a2a;
}

.table thead th {
  background-color: #f5f5f5;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .table thead th {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
}

.table tbody td {
  border-color: #ddd;
}

body.dark-mode .table tbody td {
  border-color: #444444;
}

/* Changing the background color for tab/pills */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #ff6707;
}

.nav-pills .nav-link {
  color: #333333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .nav-pills .nav-link {
  color: #e0e0e0;
}

.nav-pills .nav-link:hover {
  background-color: #f5f5f5;
}

body.dark-mode .nav-pills .nav-link:hover {
  background-color: #2a2a2a;
}

/* Display the suggestions list on top of other elements */
.customListDivWidth {
  position: absolute;
  z-index: 500;
  width: 100%;
}

.blueText {
  color: #2FA4E7;
}

/* Card styling for dark mode */
.card {
  background-color: #ffffff;
  color: #333333;
  border-color: #ddd;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .card {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #444444;
}

.card-header {
  background-color: #f5f5f5;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .card-header {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
}

.card-body {
  background-color: #ffffff;
  color: #333333;
}

body.dark-mode .card-body {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Form elements for dark mode */
.form-control,
.form-control-plaintext {
  background-color: #f5f5f5;
  color: #333333;
  border-color: #ddd;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .form-control,
body.dark-mode .form-control-plaintext {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
}

.form-control:focus {
  background-color: #ffffff;
  color: #333333;
  border-color: #fd7e14;
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

body.dark-mode .form-control:focus {
  background-color: #333333;
  color: #e0e0e0;
  border-color: #fd7e14;
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.5);
}

.form-control::placeholder {
  color: #666666;
}

body.dark-mode .form-control::placeholder {
  color: #a0a0a0;
}

/* Input styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background-color: #f5f5f5 !important;
  color: #333333 !important;
  border-color: #ddd !important;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode textarea,
body.dark-mode select {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-color: #444444 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  background-color: #ffffff !important;
  color: #333333 !important;
  border-color: #fd7e14 !important;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="password"]:focus,
body.dark-mode input[type="number"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  background-color: #333333 !important;
  color: #e0e0e0 !important;
  border-color: #fd7e14 !important;
}

/* Button styling */
.btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-secondary {
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .btn-outline-secondary {
  color: #e0e0e0;
  border-color: #444444;
}

.btn-outline-secondary:hover {
  background-color: #f5f5f5;
  color: #333333;
}

body.dark-mode .btn-outline-secondary:hover {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Dashboard Chart Buttons */
#v-pills-dashboard .btn-group-sm .btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  background-color: #ffffff;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-right: 8px;
}

#v-pills-dashboard .btn-group-sm .btn:hover {
  border-color: #2196F3;
  color: #2196F3;
  background-color: rgba(33, 150, 243, 0.05);
}

#v-pills-dashboard .btn-group-sm .btn.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-color: #2196F3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

body.dark-mode #v-pills-dashboard .btn-group-sm .btn {
  border-color: #444444;
  background-color: #2a2a2a;
  color: #9e9e9e;
}

body.dark-mode #v-pills-dashboard .btn-group-sm .btn:hover {
  border-color: #64B5F6;
  color: #64B5F6;
  background-color: rgba(100, 181, 246, 0.1);
}

body.dark-mode #v-pills-dashboard .btn-group-sm .btn.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-color: #2196F3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Dashboard Card Links */
#v-pills-dashboard .card-header .text-primary {
  color: #2196F3 !important;
  font-weight: 700;
  transition: all 0.3s ease;
}

#v-pills-dashboard .card-header .text-primary:hover {
  color: #1565c0 !important;
  text-decoration: underline;
}

body.dark-mode #v-pills-dashboard .card-header .text-primary {
  color: #64B5F6 !important;
}

body.dark-mode #v-pills-dashboard .card-header .text-primary:hover {
  color: #81B5F6 !important;
}

/* Modal styling */
.modal-content {
  background-color: #ffffff;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .modal-content {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #444444;
}

.modal-header {
  background-color: #f5f5f5;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .modal-header {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
}

.modal-footer {
  background-color: #f5f5f5;
  border-color: #ddd;
}

body.dark-mode .modal-footer {
  background-color: #2a2a2a;
  border-color: #444444;
}

.close {
  color: #333333;
}

body.dark-mode .close {
  color: #e0e0e0;
}

/* Nav and navigation styling */
.nav-tabs {
  border-bottom-color: #ddd;
}

body.dark-mode .nav-tabs {
  border-bottom-color: #444444;
}

.nav-tabs .nav-link {
  color: #666666;
  border-color: #ddd;
}

body.dark-mode .nav-tabs .nav-link {
  color: #a0a0a0;
  border-color: #444444;
}

.nav-tabs .nav-link.active {
  color: #333333;
  background-color: #ffffff;
  border-color: #ddd;
}

body.dark-mode .nav-tabs .nav-link.active {
  color: #e0e0e0;
  background-color: #1a1a1a;
  border-color: #444444;
}

/* DataTable styling */
.dataTables_wrapper {
  color: #333333;
}

body.dark-mode .dataTables_wrapper {
  color: #e0e0e0;
}

.dataTables_length select,
.dataTables_filter input {
  background-color: #f5f5f5;
  color: #333333;
  border-color: #ddd;
}

body.dark-mode .dataTables_length select,
body.dark-mode .dataTables_filter input {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
}

/* Alert styling */
.alert {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .alert-success {
  background-color: #1b5e20;
  color: #81c784;
  border-color: #2e7d32;
}

body.dark-mode .alert-danger {
  background-color: #b71c1c;
  color: #ef5350;
  border-color: #c62828;
}

body.dark-mode .alert-warning {
  background-color: #f57f17;
  color: #fff;
  border-color: #f57f17;
}

body.dark-mode .alert-info {
  background-color: #01579b;
  color: #81d4fa;
  border-color: #0277bd;
}

/* Dropdown styling for dark mode */
.dropdown-menu {
  background-color: #ffffff;
  color: #333333;
}

body.dark-mode .dropdown-menu {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

.dropdown-item {
  color: #333333;
}

body.dark-mode .dropdown-item {
  color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: #1a1a1a;
  color: #fd7e14;
}

.dropdown-toggle {
  color: #ffffff;
}

body.dark-mode .dropdown-toggle {
  color: #333333 !important;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

body.dark-mode .btn-secondary {
  background-color: #2a2a2a;
  border-color: #444444;
  color: #333333 !important;
}

body.dark-mode .btn-secondary:hover {
  background-color: #1a1a1a;
  border-color: #fd7e14;
  color: #fd7e14;
}

/* Status badge/span styling in dark mode */
.badge {
  color: #333333;
}

body.dark-mode .badge {
  color: #333333 !important;
}

/* Active status text */
span {
  color: black !important;
}

body.dark-mode span {
  color: #333333 !important;
}

body.dark-mode .trend span {
  color: #ffffff !important;
}

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

/* Dashboard Summary Cards - Modern Design */
.dashboard-card {
  border: 1px solid #e0e0e0;
  border-left: 8px solid #2196F3 !important;
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196F3 0%, #64B5F6 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: scaleX(1);
  transform-origin: left;
}

.dashboard-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 50%;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #1976D2 !important;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card:hover::after {
  opacity: 0.5;
}

.dashboard-card .card-body {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
  padding-right: 100px;
}

.dashboard-card .card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b0b0b0;
  margin-bottom: 12px;
  display: block;
  opacity: 0.9;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: none;
}

.dashboard-card:hover .card-title {
  opacity: 1;
  letter-spacing: 0.8px;
}

.dashboard-card .card-value {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  line-height: 1.1;
  transition: all 0.3s ease;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI', Roboto, sans-serif;
}

.dashboard-card .card-value i {
  font-size: 16px;
  margin-right: 6px;
  color: #1a1a1a;
}

.dashboard-card:hover .card-value {
  letter-spacing: -0.5px;
  filter: none;
  transform: scale(1.02);
}

.dashboard-card .card-icon {
  font-size: 28px;
  color: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  width: 56px;
  height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 20px;
}

.dashboard-card .card-icon i {
  font-size: 24px !important;
  color: #2196F3 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
}

.dashboard-card .card-icon svg {
  fill: #2196F3 !important;
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

.dashboard-card:hover .card-icon {
  opacity: 1 !important;
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.25);
}

/* Ensure Font Awesome Icons Display */
.dashboard-card i {
  display: inline !important;
}

.dashboard-card .card-icon::before {
  display: inline-block !important;
}

/* Color Variants - Modern Light Theme */
.dashboard-card.card-primary {
  background: #ffffff;
  color: #333333;
  border-left-color: #2196F3 !important;
  border-left: 8px solid #2196F3 !important;
}

.dashboard-card.card-primary::before {
  background: linear-gradient(90deg, #2196F3 0%, #64B5F6 100%);
}

.dashboard-card.card-primary .card-icon {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #2196F3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.dashboard-card.card-primary .card-icon i,
.dashboard-card.card-primary .card-icon svg {
  color: #2196F3 !important;
  fill: #2196F3 !important;
}

.dashboard-card.card-secondary {
  background: #ffffff;
  color: #333333;
  border-left: 8px solid #757575 !important;
}

.dashboard-card.card-secondary::before {
  background: linear-gradient(90deg, #757575 0%, #9E9E9E 100%);
}

.dashboard-card.card-secondary .card-icon {
  background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
  color: #757575;
  box-shadow: 0 2px 8px rgba(117, 117, 117, 0.1);
}

.dashboard-card.card-secondary .card-icon i,
.dashboard-card.card-secondary .card-icon svg {
  color: #757575 !important;
  fill: #757575 !important;
}

.dashboard-card.card-success {
  background: #ffffff;
  color: #333333;
  border-left: 8px solid #4CAF50 !important;
}

.dashboard-card.card-success::before {
  background: linear-gradient(90deg, #4CAF50 0%, #81C784 100%);
}

.dashboard-card.card-success .card-icon {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #4CAF50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.dashboard-card.card-success .card-icon i,
.dashboard-card.card-success .card-icon svg {
  color: #4CAF50 !important;
  fill: #4CAF50 !important;
}

.dashboard-card.card-warning {
  background: #ffffff;
  color: #333333;
  border-left: 8px solid #FF9800 !important;
}

.dashboard-card.card-warning::before {
  background: linear-gradient(90deg, #FF9800 0%, #FFB74D 100%);
}

.dashboard-card.card-warning .card-icon {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #FF9800;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.dashboard-card.card-warning .card-icon i,
.dashboard-card.card-warning .card-icon svg {
  color: #FF9800 !important;
  fill: #FF9800 !important;
}

.dashboard-card.card-danger {
  background: #ffffff;
  color: #333333;
  border-left: 8px solid #F44336 !important;
}

.dashboard-card.card-danger::before {
  background: linear-gradient(90deg, #F44336 0%, #EF5350 100%);
}

.dashboard-card.card-danger .card-icon {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #F44336;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

.dashboard-card.card-danger .card-icon i,
.dashboard-card.card-danger .card-icon svg {
  color: #F44336 !important;
  fill: #F44336 !important;
}

.dashboard-card.card-info {
  background: #ffffff;
  color: #333333;
  border-left: 8px solid #00BCD4 !important;
}

.dashboard-card.card-info::before {
  background: linear-gradient(90deg, #00BCD4 0%, #4DD0E1 100%);
}

.dashboard-card.card-info .card-icon {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #00BCD4;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.15);
}

.dashboard-card.card-info .card-icon i,
.dashboard-card.card-info .card-icon svg {
  color: #00BCD4 !important;
  fill: #00BCD4 !important;
}

/* Dark Mode Dashboard Cards - Modern Design */
body.dark-mode .dashboard-card {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #444444;
  border-left: 8px solid #2196F3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dashboard-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-left-color: #64B5F6 !important;
}

body.dark-mode .dashboard-card .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-primary {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #2196F3 !important;
}

body.dark-mode .dashboard-card.card-primary::before {
  background: linear-gradient(90deg, #2196F3 0%, #64B5F6 100%);
}

body.dark-mode .dashboard-card.card-primary .card-icon {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(100, 181, 246, 0.15) 100%);
  color: #64B5F6;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

body.dark-mode .dashboard-card.card-primary .card-icon i,
body.dark-mode .dashboard-card.card-primary .card-icon svg {
  color: #64B5F6 !important;
  fill: #64B5F6 !important;
}

body.dark-mode .dashboard-card.card-secondary {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #757575 !important;
}

body.dark-mode .dashboard-card.card-secondary .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-secondary .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card.card-secondary .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-secondary::before {
  background: linear-gradient(90deg, #757575 0%, #9E9E9E 100%);
}

body.dark-mode .dashboard-card.card-secondary .card-icon {
  background: linear-gradient(135deg, rgba(117, 117, 117, 0.2) 0%, rgba(158, 158, 158, 0.15) 100%);
  color: #9E9E9E;
  box-shadow: 0 2px 8px rgba(117, 117, 117, 0.15);
}

body.dark-mode .dashboard-card.card-secondary .card-icon i,
body.dark-mode .dashboard-card.card-secondary .card-icon svg {
  color: #9E9E9E !important;
  fill: #9E9E9E !important;
}

body.dark-mode .dashboard-card.card-success {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #4CAF50 !important;
}

body.dark-mode .dashboard-card.card-success .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-success .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card.card-success .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-success::before {
  background: linear-gradient(90deg, #4CAF50 0%, #81C784 100%);
}

body.dark-mode .dashboard-card.card-success .card-icon {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(129, 199, 132, 0.15) 100%);
  color: #81C784;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

body.dark-mode .dashboard-card.card-success .card-icon i,
body.dark-mode .dashboard-card.card-success .card-icon svg {
  color: #81C784 !important;
  fill: #81C784 !important;
}

body.dark-mode .dashboard-card.card-warning {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #FF9800 !important;
}

body.dark-mode .dashboard-card.card-warning .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-warning .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card.card-warning .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-warning::before {
  background: linear-gradient(90deg, #FF9800 0%, #FFB74D 100%);
}

body.dark-mode .dashboard-card.card-warning .card-icon {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 183, 77, 0.15) 100%);
  color: #FFB74D;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

body.dark-mode .dashboard-card.card-warning .card-icon i,
body.dark-mode .dashboard-card.card-warning .card-icon svg {
  color: #FFB74D !important;
  fill: #FFB74D !important;
}

body.dark-mode .dashboard-card.card-danger {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #F44336 !important;
}

body.dark-mode .dashboard-card.card-danger .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-danger .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card.card-danger .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-danger::before {
  background: linear-gradient(90deg, #F44336 0%, #EF5350 100%);
}

body.dark-mode .dashboard-card.card-danger .card-icon {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(239, 83, 80, 0.15) 100%);
  color: #EF5350;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

body.dark-mode .dashboard-card.card-danger .card-icon i,
body.dark-mode .dashboard-card.card-danger .card-icon svg {
  color: #EF5350 !important;
  fill: #EF5350 !important;
}

body.dark-mode .dashboard-card.card-info {
  background: #2a2a2a;
  color: #ffffff;
  border-left: 8px solid #00BCD4 !important;
}

body.dark-mode .dashboard-card.card-info .card-title {
  color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-info .card-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

body.dark-mode .dashboard-card.card-info .card-value i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode .dashboard-card.card-info::before {
  background: linear-gradient(90deg, #00BCD4 0%, #4DD0E1 100%);
}

body.dark-mode .dashboard-card.card-info .card-icon {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(77, 208, 225, 0.15) 100%);
  color: #4DD0E1;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

body.dark-mode .dashboard-card.card-info .card-icon i,
body.dark-mode .dashboard-card.card-info .card-icon svg {
  color: #4DD0E1 !important;
  fill: #4DD0E1 !important;
}

/* Trend Indicators - Modern Design */
.trend {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  color: #4CAF50;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.trend.positive {
  color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.15);
}

.trend.negative {
  color: #F44336;
  background-color: rgba(244, 67, 54, 0.15);
}

.trend i {
  font-size: 10px;
  font-weight: bold;
}

body.dark-mode .trend {
  background-color: rgba(129, 199, 132, 0.15);
  color: #ffffff !important;
}

body.dark-mode .trend.positive {
  background-color: rgba(129, 199, 132, 0.15);
  color: #ffffff !important;
}

body.dark-mode .trend.negative {
  background-color: rgba(239, 83, 80, 0.15);
  color: #ffffff !important;
}

/* Dashboard Cards General - Material Design */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
}
}

.card-header h5 {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.card-body {
  padding: 20px;
}

/* Dashboard Period Buttons */
.dashboard-period-btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 4px;
  border: 2px solid #e0e0e0;
  background-color: #ffffff;
  color: #666666;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-period-btn:hover {
  border-color: #2196F3;
  color: #2196F3;
  background-color: rgba(33, 150, 243, 0.05);
}

.dashboard-period-btn.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-color: #2196F3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

body.dark-mode .dashboard-period-btn {
  border-color: #444444;
  background-color: #2a2a2a;
  color: #9e9e9e;
}

body.dark-mode .dashboard-period-btn:hover {
  border-color: #64B5F6;
  color: #64B5F6;
  background-color: rgba(100, 181, 246, 0.1);
}

body.dark-mode .dashboard-period-btn.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-color: #2196F3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Dashboard Refresh Button */
#dashboardRefreshBtn {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  background-color: #ffffff;
  color: #2196F3;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#dashboardRefreshBtn:hover {
  border-color: #2196F3;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
  color: #1976D2;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

#dashboardRefreshBtn:active {
  transform: scale(0.98);
}

#dashboardRefreshBtn i {
  margin-right: 6px;
  display: inline-block;
}

#dashboardRefreshBtn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: -0.125em;
  transform-origin: center;
}

#dashboardRefreshBtn.spinning i {
  animation: spin 0.6s linear infinite;
}

#dashboardRefreshBtn.spinning svg {
  animation: spin 0.6s linear infinite !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.dark-mode #dashboardRefreshBtn {
  border-color: #444444;
  background-color: #2a2a2a;
  color: #64B5F6;
}

body.dark-mode #dashboardRefreshBtn:hover {
  border-color: #64B5F6;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.15) 0%, rgba(100, 181, 246, 0.1) 100%);
  color: #81B5F6;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Dashboard Header Styles */
.dashboard-header {
  margin-bottom: 24px;
}

.dashboard-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.dark-mode .dashboard-header h2 {
  color: #e0e0e0;
}

.dashboard-header .text-muted {
  font-size: 14px;
  color: #999999;
  font-weight: 500;
}

body.dark-mode .dashboard-header .text-muted {
  color: #b0b0b0;
}

/* Dashboard Cards Container */
#v-pills-dashboard {
  padding: 0;
}

#v-pills-dashboard .my-4 {
  margin: 0 !important;
  padding: 0 !important;
}

#v-pills-dashboard .row.mb-4 {
  margin-bottom: 32px !important;
}

#v-pills-dashboard .row.mb-4:last-child {
  margin-bottom: 0 !important;
}

/* Dashboard Cards Row Styling */
#v-pills-dashboard .col-lg-4,
#v-pills-dashboard .col-md-4 {
  transition: all 0.3s ease;
}

/* Chart and Content Cards - Modern Dashboard Design */
#v-pills-dashboard .card {
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #333333;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
  border-top: 4px solid #2196F3;
}

#v-pills-dashboard .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#v-pills-dashboard .card-header {
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f6f8 100%);
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 24px;
  border-radius: 14px 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#v-pills-dashboard .card-header h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

#v-pills-dashboard .card-header h5 i {
  font-size: 18px;
}

#v-pills-dashboard .card-body {
  padding: 24px;
  background: #ffffff;
}

/* Sales Overview Card */
#v-pills-dashboard .col-lg-8 .card {
  border-top-color: #4CAF50;
}

#v-pills-dashboard .col-lg-8 .card-header {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

#v-pills-dashboard .col-lg-8 .card-header h5 {
  color: #2e7d32;
}

/* Top Selling Card */
#v-pills-dashboard .col-lg-4 .card {
  border-top-color: #2196F3;
}

#v-pills-dashboard .col-lg-4 .card-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

#v-pills-dashboard .col-lg-4 .card-header h5 {
  color: #1565c0;
}

/* Recent Sales Card - First col-lg-6 */
#v-pills-dashboard .row:last-child .col-lg-6:first-child .card {
  border-top-color: #FF9800;
}

#v-pills-dashboard .row:last-child .col-lg-6:first-child .card-header {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

#v-pills-dashboard .row:last-child .col-lg-6:first-child .card-header h5 {
  color: #e65100;
}

/* Low Stock Alert Card - Second col-lg-6 */
#v-pills-dashboard .row:last-child .col-lg-6:last-child .card {
  border-top-color: #F44336;
}

#v-pills-dashboard .row:last-child .col-lg-6:last-child .card-header {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

#v-pills-dashboard .row:last-child .col-lg-6:last-child .card-header h5 {
  color: #c62828;
}

body.dark-mode #v-pills-dashboard .card {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #444444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode #v-pills-dashboard .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode #v-pills-dashboard .card-header {
  background: linear-gradient(135deg, #333333 0%, #2f2f2f 100%);
  border-bottom-color: #444444;
}

body.dark-mode #v-pills-dashboard .card-header h5 {
  color: #ffffff !important;
}

body.dark-mode #v-pills-dashboard .card-body {
  background: #2a2a2a;
}

/* Dark mode specific card headers */
body.dark-mode #v-pills-dashboard .col-lg-8 .card-header {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(129, 199, 132, 0.15) 100%);
}

body.dark-mode #v-pills-dashboard .col-lg-8 .card-header h5 {
  color: #ffffff !important;
}

body.dark-mode #v-pills-dashboard .col-lg-4 .card-header {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(100, 181, 246, 0.15) 100%);
}

body.dark-mode #v-pills-dashboard .col-lg-4 .card-header h5 {
  color: #ffffff !important;
}

body.dark-mode #v-pills-dashboard .row:last-child .col-lg-6:first-child .card-header {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 183, 77, 0.15) 100%);
}

body.dark-mode #v-pills-dashboard .row:last-child .col-lg-6:first-child .card-header h5 {
  color: #ffffff !important;
}

body.dark-mode #v-pills-dashboard .row:last-child .col-lg-6:last-child .card-header {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(239, 83, 80, 0.15) 100%);
}

body.dark-mode #v-pills-dashboard .row:last-child .col-lg-6:last-child .card-header h5 {
  color: #ffffff !important;
}

/* Top Selling Period Label in Dark Mode */
body.dark-mode #topSellingPeriod {
  color: #ffffff !important;
}

/* Recent Sales Item */
.recent-sale-item {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 8px;
}

.recent-sale-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.recent-sale-item:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

.recent-sale-item .sale-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 18px;
  color: #2196F3;
  flex-shrink: 0;
}

.recent-sale-item .sale-details {
  flex: 1;
}

.recent-sale-item .sale-customer {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-size: 14px;
}

.recent-sale-item .sale-date {
  font-size: 12px;
  color: #b0b0b0;
}

.recent-sale-item .sale-amount {
  font-weight: 800;
  color: #4CAF50;
  font-size: 16px;
  text-align: right;
  min-width: 60px;
}

body.dark-mode .recent-sale-item {
  border-bottom-color: #444444;
}

body.dark-mode .recent-sale-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .recent-sale-item .sale-icon {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(100, 181, 246, 0.1) 100%);
  color: #64B5F6;
}

body.dark-mode .recent-sale-item .sale-customer {
  color: #ffffff !important;
}

body.dark-mode .recent-sale-item .sale-date {
  color: #ffffff !important;
}

body.dark-mode .recent-sale-item .sale-amount {
  color: #81C784 !important;
}

/* Low Stock Item */
.low-stock-item {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid #FF9800;
}

.low-stock-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.low-stock-item:hover {
  background-color: #fff8f0;
  transform: translateX(4px);
  border-left-color: #F57C00;
}

.low-stock-item .stock-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 18px;
  color: #FF9800;
  flex-shrink: 0;
}

.low-stock-item .stock-details {
  flex: 1;
}

.low-stock-item .product-name {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-size: 14px;
}

.low-stock-item .stock-info {
  font-size: 12px;
  color: #b0b0b0;
}

.low-stock-item .stock-quantity {
  font-weight: 800;
  color: #F44336;
  font-size: 16px;
  text-align: right;
  min-width: 70px;
}

body.dark-mode .low-stock-item {
  border-bottom-color: #444444;
  border-left-color: #FF9800;
}

body.dark-mode .low-stock-item:hover {
  background-color: rgba(255, 152, 0, 0.1);
}

body.dark-mode .low-stock-item .stock-icon {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 183, 77, 0.1) 100%);
  color: #FFB74D;
}

body.dark-mode .low-stock-item .product-name {
  color: #ffffff !important;
}

body.dark-mode .low-stock-item .stock-info {
  color: #ffffff !important;
}

body.dark-mode .low-stock-item .stock-name {
  color: #ffffff !important;
}

body.dark-mode .low-stock-item .stock-quantity {
  color: #ffffff !important;
}

body.dark-mode .low-stock-item .stock-count {
  color: #FF6B6B !important;
}
}

.low-stock-item:last-child {
  border-bottom: none;
}

.low-stock-item .stock-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff3cd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
  color: #ffc107;
}

.low-stock-item .stock-details {
  flex: 1;
}

.low-stock-item .stock-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.low-stock-item .stock-quantity {
  font-size: 12px;
  color: #999;
}

.low-stock-item .stock-count {
  font-weight: 700;
  color: #dc3545;
  font-size: 14px;
}

/* Top Selling Item */
.top-selling-item {
  text-align: center;
  padding: 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 8px;
}

.top-selling-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.top-selling-item:hover {
  background-color: #f8f9fa;
  transform: scale(1.02);
}

.top-selling-item .item-name {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 14px;
}

.top-selling-item .item-sales {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.top-selling-item .item-label {
  font-size: 11px;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

body.dark-mode .top-selling-item {
  border-bottom-color: #444444;
  color: #ffffff !important;
}

body.dark-mode .top-selling-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .top-selling-item .item-name {
  color: #ffffff !important;
}

body.dark-mode .top-selling-item .item-sales {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
}

body.dark-mode .top-selling-item .item-label {
  color: #ffffff !important;
}

/* Table in Dashboard */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #e9ecef;
  font-size: 12px;
  text-transform: uppercase;
}

.dashboard-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
}

.dashboard-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Chart Container */
#salesChart {
  max-height: 300px;
}

/* Navigation Menu Styling */
.nav.flex-column {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: all 0.3s ease;
}

.nav.flex-column .nav-link {
  color: var(--text-primary);
  margin: 5px 10px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav.flex-column .nav-link i {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.nav.flex-column .nav-link:hover {
  background-color: rgba(255, 103, 7, 0.1);
  color: var(--text-primary);
  border-left-color: #ff6707;
  transform: translateX(5px);
}

.nav.flex-column .nav-link.active {
  background-color: var(--nav-active-bg);
  color: #ffffff;
  border-left-color: #ff6707;
  font-weight: 600;
}

.nav.flex-column .nav-link.active i {
  color: #ffffff;
}

body.dark-mode .nav.flex-column {
  background-color: #2a2a2a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav.flex-column .nav-link {
  color: #e0e0e0;
}

body.dark-mode .nav.flex-column .nav-link:hover {
  background-color: rgba(255, 103, 7, 0.15);
  color: #ffffff;
}

body.dark-mode .nav.flex-column .nav-link.active {
  background-color: #ff6707;
  color: #ffffff;
}

/* Report Pages Styling */
.card.card-outline-secondary {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 1px 3px var(--shadow-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.card.card-outline-secondary .card-header {
  background: linear-gradient(135deg, #ff6707 0%, #ff8a3d 100%);
  border-bottom: 2px solid #ff6707;
  padding: 15px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .card.card-outline-secondary .card-header {
  background: linear-gradient(135deg, #ff6707 0%, #ff8a3d 100%);
}

/* Report Tabs Styling */
.nav.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  gap: 5px;
}

.nav.nav-tabs .nav-item .nav-link {
  color: var(--text-secondary);
  background-color: transparent;
  border: none;
  padding: 10px 16px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav.nav-tabs .nav-item .nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: #ff6707;
}

.nav.nav-tabs .nav-item .nav-link.active {
  color: #ff6707;
  border-bottom-color: #ff6707;
  font-weight: 600;
}

body.dark-mode .nav.nav-tabs .nav-item .nav-link {
  color: #a0a0a0;
}

body.dark-mode .nav.nav-tabs .nav-item .nav-link:hover {
  color: #ffffff;
}

body.dark-mode .nav.nav-tabs .nav-item .nav-link.active {
  color: #ff6707;
}

/* Report Tab Content */
.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

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

.tab-pane p {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Report Filters Form */
.tab-pane form {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #ff6707;
}

.tab-pane form .form-row {
  margin-bottom: 15px;
}

.tab-pane form label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tab-pane form .form-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px;
  transition: border-color 0.3s ease;
}

.tab-pane form .form-control:focus {
  border-color: #ff6707;
  box-shadow: 0 0 0 0.2rem rgba(255, 103, 7, 0.25);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body.dark-mode .tab-pane form {
  background-color: #2a2a2a;
}

body.dark-mode .tab-pane form .form-control {
  background-color: #3a3a3a;
  color: #e0e0e0;
}

/* Report Buttons */
.tab-pane form .btn {
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.tab-pane form .btn-dark {
  background-color: #ff6707;
  border-color: #ff6707;
  color: #ffffff;
}

.tab-pane form .btn-dark:hover {
  background-color: #ff8a3d;
  border-color: #ff8a3d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 103, 7, 0.3);
}

.tab-pane form .btn:not(.btn-dark) {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.tab-pane form .btn:not(.btn-dark):hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

/* Ensure button text is white in light mode */
.tab-pane form .btn-info,
.tab-pane form .btn-success,
.tab-pane form .btn-warning,
.tab-pane form .btn-danger,
.tab-pane form .btn-primary {
  color: #ffffff !important;
}

body.dark-mode .tab-pane form .btn:not(.btn-dark) {
  background-color: #3a3a3a;
  border-color: #555;
}

/* Report Tables */
.table-responsive table {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 6px;
  overflow: hidden;
}

.table-responsive table thead {
  background: linear-gradient(135deg, #ff6707 0%, #ff8a3d 100%);
  color: #ffffff;
  font-weight: 600;
}

.table-responsive table thead th {
  padding: 15px;
  vertical-align: middle;
  border: none;
}

.table-responsive table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.table-responsive table tbody tr:hover {
  background-color: var(--table-hover);
}

.table-responsive table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}

body.dark-mode .table-responsive table {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .table-responsive table thead {
  background: linear-gradient(135deg, #ff6707 0%, #ff8a3d 100%);
}

body.dark-mode .table-responsive table tbody tr {
  border-bottom-color: #444;
}

body.dark-mode .table-responsive table tbody tr:hover {
  background-color: #3a3a3a;
}

/* Refresh Button Styling */
#reportsTablesRefresh {
  background-color: #ff6707;
  border-color: #ff6707;
  color: #ffffff;
  font-weight: 500;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

#reportsTablesRefresh:hover {
  background-color: #ff8a3d;
  border-color: #ff8a3d;
  transform: rotate(180deg);
}

/* Receipt Styling */
.receipt-box {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#receiptContainer {
  background: linear-gradient(135deg, #f8f9fa 0%, #f5f6f7 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
}

#downloadReceiptButton {
  background: linear-gradient(135deg, #00BCD4 0%, #00acc1 100%);
  border: none;
  color: white;
  font-weight: 700;
  margin-left: 10px;
  transition: all 0.3s ease;
}

#downloadReceiptButton:hover {
  background: linear-gradient(135deg, #0097a7 0%, #00838f 100%);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
  transform: translateY(-2px);
}

#downloadReceiptButton i {
  margin-right: 6px;
}

/* Receipt Buttons Container */
#receiptButtonsContainer {
  display: inline-flex;
  gap: 10px;
  margin-left: 10px;
}

#printReceiptButton {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#printReceiptButton:hover {
  background: linear-gradient(135deg, #1565c0 0%, #1565c0 100%);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  transform: translateY(-2px);
}

#printReceiptButton i {
  margin-right: 6px;
}

#downloadReceiptPDFButton {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#downloadReceiptPDFButton:hover {
  background: linear-gradient(135deg, #E65100 0%, #E65100 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  transform: translateY(-2px);
}

#downloadReceiptPDFButton i {
  margin-right: 6px;
}

body.dark-mode #printReceiptButton {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

body.dark-mode #printReceiptButton:hover {
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

body.dark-mode #downloadReceiptPDFButton {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

body.dark-mode #downloadReceiptPDFButton:hover {
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Receipt Print Button */
.print-button button {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.print-button button:hover {
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  transform: translateY(-2px);
}

/* Responsive Receipt */
@media (max-width: 768px) {
  .receipt-box {
    padding: 20px;
  }
  
  .receipt-info {
    grid-template-columns: 1fr !important;
  }
}

/* Dark Mode Receipt */
body.dark-mode .receipt-box {
  background: #2a2a2a;
  border-color: #444444;
}

body.dark-mode #receiptContainer {
  background: linear-gradient(135deg, #333333 0%, #2f2f2f 100%);
}

body.dark-mode .receipt-container {
  background-color: #2a2a2a;
  color: #e0e0e0;
}
/* Report Action Buttons */
.table td .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-right: 2px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.table td .btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.table td .btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
  transform: scale(1.1);
}

.table td .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.table td .btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
  transform: scale(1.1);
}

.table td .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.table td .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  transform: scale(1.1);
}

.table td .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.table td .btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: scale(1.1);
}

.table td .btn-sm i {
  margin-right: 2px;
}

/* Dark Mode Action Buttons */
body.dark-mode .table td .btn-info {
  background-color: #138496;
  border-color: #0c5460;
}

body.dark-mode .table td .btn-info:hover {
  background-color: #0c5460;
}

body.dark-mode .table td .btn-warning {
  background-color: #ffb81c;
  border-color: #ffb81c;
}

body.dark-mode .table td .btn-warning:hover {
  background-color: #ff9800;
}

body.dark-mode .table td .btn-secondary {
  background-color: #5a6268;
  border-color: #545b62;
}

body.dark-mode .table td .btn-secondary:hover {
  background-color: #545b62;
}

body.dark-mode .table td .btn-danger {
  background-color: #bd2130;
  border-color: #a71d2a;
}

body.dark-mode .table td .btn-danger:hover {
  background-color: #a71d2a;
}

/* Report View Toggle Buttons */
#reportsViewListBtn,
#reportsViewGridBtn {
  transition: all 0.3s ease;
}

#reportsViewListBtn.active,
#reportsViewGridBtn.active {
  background-color: #ff6707 !important;
  color: white !important;
  border-color: #ff6707 !important;
}

/* Grid View - Card Layout */
.reports-grid-view {
  display: block !important;
}

.reports-grid-view .dataTables_wrapper {
  display: block !important;
}

.reports-grid-view .dataTables_info,
.reports-grid-view .dataTables_length,
.reports-grid-view .dataTables_filter,
.reports-grid-view .dataTables_processing,
.reports-grid-view thead,
.reports-grid-view table thead,
.reports-grid-view table tfoot,
.reports-grid-view .dataTables_wrapper thead {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.reports-grid-view .dataTables_wrapper table {
  display: block !important;
  border: none !important;
  background: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.reports-grid-view .dataTables_wrapper table thead {
  display: none !important;
  visibility: hidden !important;
}

.reports-grid-view .dataTables_wrapper table tfoot {
  display: none !important;
  visibility: hidden !important;
}

.reports-grid-view .dataTables_wrapper table tbody {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
  padding: 20px !important;
}

.reports-grid-view .dataTables_wrapper table tbody tr {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 15px !important;
  background-color: var(--bg-secondary) !important;
  box-shadow: 0 2px 4px var(--shadow-color) !important;
  transition: all 0.3s ease !important;
}

.reports-grid-view .dataTables_wrapper table tbody tr:hover {
  box-shadow: 0 4px 12px var(--shadow-color) !important;
  transform: translateY(-2px) !important;
}

.reports-grid-view .dataTables_wrapper table td {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  font-size: 12px !important;
  word-break: break-word !important;
}

.reports-grid-view .dataTables_wrapper table td::before {
  content: attr(data-label);
  font-weight: bold !important;
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  text-align: left !important;
  order: -1 !important;
}

.reports-grid-view .dataTables_wrapper table td:last-child {
  display: flex !important;
  grid-template-columns: unset !important;
  gap: 8px !important;
  padding: 10px 0 0 0 !important;
  margin-top: 5px !important;
  border-top: 1px solid var(--border-color) !important;
  border-bottom: none !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.reports-grid-view .dataTables_wrapper table td:last-child::before {
  display: none !important;
}

/* Hide DataTables controls in grid view except pagination */
.reports-grid-view .dataTables_wrapper .dataTables_length,
.reports-grid-view .dataTables_wrapper .dataTables_info,
.reports-grid-view .dataTables_wrapper .dataTables_filter {
  display: none !important;
}

/* Show pagination controls in grid view */
.reports-grid-view .dataTables_wrapper .dataTables_paginate {
  display: block !important;
}

.reports-grid-view .dataTables_wrapper table td:last-child button {
  flex: 1 !important;
  min-width: 60px !important;
  padding: 8px 6px !important;
  font-size: 11px !important;
  border-radius: 4px !important;
}

/* List View Styling */
.reports-list-view {
  display: block !important;
}

.reports-list-view .dataTables_wrapper {
  display: block !important;
}

.reports-list-view .dataTables_info,
.reports-list-view .dataTables_paginate {
  display: block !important;
}

.reports-list-view .dataTables_wrapper table {
  display: table !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.reports-list-view .dataTables_wrapper table thead {
  display: table-header-group !important;
}

.reports-list-view .dataTables_wrapper table tbody {
  display: table-row-group !important;
}

.reports-list-view .dataTables_wrapper table tr {
  display: table-row !important;
}

.reports-list-view .dataTables_wrapper table td {
  display: table-cell !important;
  grid-template-columns: unset !important;
  border: 1px solid var(--border-color) !important;
}
