@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #f67280;
  --secondary-color: #c06c84;
  --accent-color: #6c5b7b;
  --dark-color: #355c7d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #f67280 0%, #c06c84 100%);
  --gradient-secondary: linear-gradient(135deg, #c06c84 0%, #6c5b7b 100%);
  --gradient-accent: linear-gradient(135deg, #6c5b7b 0%, #355c7d 100%);
  --gradient-dark: linear-gradient(135deg, #355c7d 0%, #2c4a5e 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-colored: 0 0.5rem 1rem rgba(246, 114, 128, 0.25);

  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* Modern wishlist styles removed */

/* Global Styles */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

html[lang^="fa"] body,
html[dir="rtl"] body {
  font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header Cart & Wishlist Styles */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.btn-icon:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn-icon i {
  font-size: 1.1rem;
}

.cart-badge,
.wishlist-badge {
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid var(--white);
  line-height: 1;
}

.cart-dropdown {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 0.5rem;
}

.cart-header {
  background: var(--gradient-primary);
  color: var(--white);
}

.cart-items {
  background: var(--white);
}

.cart-item {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.3s ease;
}

.cart-item:hover {
  background-color: var(--gray-100);
}

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

.cart-item-image {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.cart-item-details h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-color);
}

.cart-item-quantity {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.cart-footer {
  background: var(--gray-100);
}

.cart-total {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.empty-cart {
  color: var(--gray-500);
}

.empty-cart i {
  opacity: 0.5;
}

/* Enhanced Dropdown animation for navbar */
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  margin-top: 0.5rem !important;
  min-width: 220px;
  z-index: 1030 !important;
}

.navbar .dropdown-menu.show {
  animation: dropdownFadeIn 0.2s ease forwards;
}

/* Enhanced dropdown items for navbar */
.navbar .dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem 0.5rem;
  width: auto;
  color: var(--gray-700);
}

.navbar .dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  transform: translateX(3px);
}

.navbar .dropdown-item.active {
  background: linear-gradient(135deg, #355c7d 0%, #2c4a5e 100%);
  color: white;
  font-weight: 600;
}

.navbar .dropdown-item.active:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.navbar .dropdown-item i {
  width: 18px;
  text-align: center;
  margin-right: 0.75rem;
}

/* Dropdown divider styling */
.navbar .dropdown-divider {
  margin: 0.5rem 1rem;
  border-color: var(--gray-200);
}

/* Dropdown toggle arrow animation */
.navbar .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Wishlist specific styles */
.btn-icon.wishlist-active {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(220, 53, 69, 0.1);
}

.btn-icon.wishlist-active:hover {
  background: var(--danger);
  color: var(--white);
}

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

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gradient-light);
  color: var(--gray-800);
  line-height: 1.6;
}

/* Bootstrap Overrides */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(246, 114, 128, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.25);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 0.25rem 0.5rem rgba(255, 193, 7, 0.25);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: 0 0.25rem 0.5rem rgba(23, 162, 184, 0.25);
}

/* Enhanced Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: var(--gradient-light);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
}

.card-body {
  padding: 1.5rem;
}

/* Dashboard Cards with Enhanced Gradients */
.dashboard-card {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.dashboard-card.secondary {
  background: var(--gradient-secondary);
}

.dashboard-card.accent {
  background: var(--gradient-accent);
}

.dashboard-card.dark {
  background: var(--gradient-dark);
}

.dashboard-card .card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.dashboard-card .card-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.dashboard-card h2 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.dashboard-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
}

.dashboard-card .text-white-50 {
  font-size: 0.875rem;
}

/* Sidebar Enhancements */
.sidebar {
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  transition: all 0.3s ease;
  z-index: 1060;
  box-shadow: var(--shadow);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .nav-link span {
  opacity: 0;
  visibility: hidden;
  width: 0;
  overflow: hidden;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
  margin: 0.25rem 0.5rem;
}

.sidebar.collapsed .nav-link i {
  margin: 0 !important;
}

.sidebar.collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.sidebar.show {
  left: 0;
}

.sidebar .nav-link {
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  margin: 0.25rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .nav-link:hover {
  background: rgba(246, 114, 128, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar .nav-link.active,
.sidebar .nav-link.test-active {
  background: linear-gradient(135deg, #ef6f7f 0%, #d1627f 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(246, 114, 128, 0.22) !important;
  border-radius: 8px !important;
  transition: none !important;
}

.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--white);
  border-radius: 2px;
}

.sidebar .nav-link i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

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

.table thead th {
  background: var(--gradient-light);
  border: none;
  font-weight: 600;
  color: var(--gray-700);
  padding: 1rem;
}

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

.table tbody tr:hover {
  background: rgba(246, 114, 128, 0.05);
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  border-color: var(--gray-200);
  vertical-align: middle;
}

/* Enhanced Forms */
.form-control {
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(246, 114, 128, 0.25);
  transform: translateY(-1px);
}

.form-select {
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(246, 114, 128, 0.25);
}

/* Enhanced Badges */
.badge {
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.75rem;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
  color: var(--white) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

.badge.bg-secondary {
  background: var(--gradient-accent) !important;
  color: var(--white) !important;
}

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

.modal-header {
  background: var(--gradient-light);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  padding: 1.5rem;
}

/* Enhanced Navigation */
.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: var(--border-radius);
  background: var(--gray-200);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  transition: width 0.6s ease;
}

.progress-bar.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Chart Containers */
.chart-container {
  position: relative;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* Enhanced Dropdowns */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(246, 114, 128, 0.1);
  color: var(--primary-color);
}

/* Loading States */
.spinner-border {
  color: var(--primary-color);
}

.placeholder {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Enhanced Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  font-weight: 600;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: #166534;
  color: #ffffff;
  border-left: 4px solid var(--success);
}

.alert-warning {
  background: #f59e0b;
  color: #111827;
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background: #b91c1c;
  color: #ffffff;
  border-left: 4px solid var(--danger);
}

.alert-info {
  background: #1d4ed8;
  color: #ffffff;
  border-left: 4px solid #3b82f6;
}

.alert .btn-close {
  filter: invert(1) grayscale(100%);
}

.alert-warning .btn-close {
  filter: none;
}

/* Enhanced Toasts */
.toast {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1 !important;
}

.toast.bg-success,
.toast.bg-danger,
.toast.bg-primary,
.toast.bg-secondary,
.toast.bg-info {
  color: #ffffff;
}

.toast.bg-warning {
  color: #111827;
}

.toast .btn-close.btn-close-white {
  filter: invert(1) grayscale(100%);
}

.toast.bg-warning .btn-close.btn-close-white {
  filter: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .sidebar {
    width: 280px;
    max-width: 85%;
    left: -280px;
  }

  .main-content {
    padding-top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.5rem 0.75rem !important;
    background: #fff !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .navbar h1 {
    font-size: 0.95rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .navbar .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .card-body {
    padding: 1rem;
  }

  .dashboard-card .display-4 {
    font-size: 1.5rem;
  }

  .btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8125rem;
  }

  .mobile-transaction-card,
  .mobile-product-card,
  .mobile-employee-card {
    background: var(--white);
    transition: background-color 0.2s ease;
  }

  .mobile-transaction-card:active,
  .mobile-product-card:active,
  .mobile-employee-card:active {
    background-color: var(--gray-100);
  }

  .mobile-transaction-card .badge,
  .mobile-product-card .badge,
  .mobile-employee-card .badge {
    padding: 0.4em 0.8em;
  }

  .chart-container {
    width: 100%;
    overflow: hidden;
  }

  .btn {
    padding: 0.5rem 1rem;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.show {
    display: block;
    /* Removed backdrop-filter to prevent blur as requested */
  }
}

@media (min-width: 992px) {
  .sidebar {
    left: 0 !important;
  }

  .main-content {
    margin-left: 280px !important;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    transition: margin-left 0.3s ease;
  }

  .sidebar.collapsed ~ .main-content {
    margin-left: 80px !important;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.scale-in {
  animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
}

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

/* Enhanced Button Groups */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Enhanced Input Groups */
.input-group .form-control {
  border-radius: 0;
}

.input-group .form-control:first-child {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group .form-control:last-child {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 1rem 2rem rgba(246, 114, 128, 0.4);
}

/* Hide floating buttons */
.fab,
.floating-button {
  display: none !important;
}

/* Status Indicators */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-indicator.online {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-indicator.offline {
  background: var(--gray-400);
}

.status-indicator.busy {
  background: var(--warning);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* Enhanced List Groups */
.list-group-item {
  border: none;
  border-radius: var(--border-radius) !important;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.list-group-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.list-group-item.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

/* Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Activity Feed Styles */
.activity-item {
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(246, 114, 128, 0.05);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  margin: -0.5rem;
}

.activity-icon {
  flex-shrink: 0;
}

/* Chart Loading Animation */
.chart-loader {
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

/* Enhanced Dashboard Cards */
.dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.dashboard-card:hover::after {
  animation: shimmer 1s ease-in-out;
}

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

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
  .dashboard-card h2 {
    font-size: 1.5rem;
  }

  .dashboard-card .fs-1 {
    font-size: 2rem !important;
  }

  .activity-item {
    padding: 0.75rem 0;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Loading States */
.loading {
  position: relative;
}

.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

/* Pulse Animation for Loading */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 114, 128, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(246, 114, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(246, 114, 128, 0);
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(246, 114, 128, 0.25);
}

/* Improved Sidebar for Mobile */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
  }
}

/* Modern Footer Styles */
.modern-footer {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Footer Styles - Fixed to prevent left-side spacing issues */
.modern-footer {
  background: var(--gradient-light);
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.footer-top {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
  width: 100%;
  overflow: visible;
}

.footer-top::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--gradient-dark);
  transform: skewY(-2deg);
  transform-origin: left;
  z-index: -1;
}

.footer-brand a {
  color: var(--white);
  text-decoration: none;
}

.footer-brand a span {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--gray-400);
  max-width: 90%;
}

/* Social Media Icons Styling */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon i {
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(246, 114, 128, 0.3);
}

.social-icon:hover i {
  color: var(--white);
}

.footer-heading {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}


.footer-newsletter {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-900) 100%);
  padding: 3rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-newsletter h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-newsletter p {
  color: var(--gray-400);
}

.newsletter-form .input-group {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form .form-control::placeholder {
  color: var(--gray-400);
}

.newsletter-form .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 600;
}

.footer-bottom {
  background: var(--gray-900);
  padding: 1.5rem 0;
  color: var(--gray-400);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.footer-badges .badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

@media (max-width: 991.98px) {
  .footer-top {
    padding: 3rem 0 1.5rem;
    width: 100%;
    overflow: hidden;
  }

  .footer-brand {
    margin-bottom: 2rem;
  }

  .footer-badges {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }

  .footer-bottom .col-md-6:first-child {
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

/* RTL Fixes for Footer */
[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a {
  padding-left: 0;
  padding-right: 0;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .footer-top::before {
  transform-origin: right;
  transform: skewY(2deg);
}

[dir="rtl"] .newsletter-form .form-control {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

[dir="rtl"] .newsletter-form .btn {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

[dir="rtl"] .social-icons {
  direction: rtl;
}

[dir="rtl"] .footer-badges {
  justify-content: flex-start;
}

[dir="rtl"] .footer-brand a i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .dropdown-item i {
  margin-right: 0;
  margin-left: 0.75rem;
}

[dir="rtl"] .dropdown-item:hover {
  transform: translateX(-3px);
}

/* Awesome Hero Slider Styles */
.hero-section {
  background: linear-gradient(135deg, rgba(246, 114, 128, 0.1) 0%, rgba(192, 108, 132, 0.1) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::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="hero-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
  pointer-events: none;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.prev {
  transform: translateX(-100%);
}

.hero-content {
  color: var(--gray-800);
  z-index: 10;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s ease-out;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--gray-600);
  animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-btn.btn-primary {
  background: linear-gradient(135deg, #f67280 0%, #c06c84 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(246, 114, 128, 0.3);
}

.hero-btn.btn-outline-dark {
  background: rgba(246, 114, 128, 0.1);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn.btn-primary:hover {
  background: linear-gradient(135deg, #e55a6a 0%, #b05a72 100%);
  box-shadow: 0 8px 25px rgba(246, 114, 128, 0.4);
}

.hero-btn.btn-outline-dark:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.hero-image-container {
  position: relative;
  z-index: 10;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideInRight 1s ease-out 0.3s both;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(246, 114, 128, 0.2);
}

.floating-card.card-1 {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 1.5s;
}

.floating-card i {
  font-size: 1.2rem;
}

/* Slider Controls */
.hero-slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 20;
  pointer-events: none;
}

.hero-slider-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-slider-btn.prev-btn {
  left: 30px;
}

.hero-slider-btn.next-btn {
  right: 30px;
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
}

.hero-slider-dots .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.hero-slider-dots .dot.active {
  background: white;
  transform: scale(1.2);
}

.hero-slider-dots .dot::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-slider-dots .dot.active::before {
  border-color: white;
  transform: scale(1.3);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-slider-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .hero-slider-btn.prev-btn {
    left: 20px;
  }

  .hero-slider-btn.next-btn {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-image {
    height: 300px;
  }

  .floating-card {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .floating-card.card-1 {
    top: 10%;
    right: -10px;
  }

  .floating-card.card-2 {
    bottom: 10%;
    left: -10px;
  }
}









.mega-header {
  background: linear-gradient(135deg, rgba(246, 114, 128, 0.05) 0%, rgba(192, 108, 132, 0.05) 100%);
  border-bottom: 1px solid rgba(192, 108, 132, 0.1);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  transition: all 0.3s ease;
}

.mega-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(192, 108, 132, 0.1);
}

.mega-header .navbar-brand {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: all 0.3s ease;
}

.mega-header .navbar-brand:hover {
  transform: translateY(-2px);
}

.mega-header .nav-link {
  font-weight: 600;
  color: var(--gray-700);
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.mega-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.mega-header .nav-link:hover {
  color: var(--primary-color);
}

.mega-header .nav-link:hover::after {
  width: 80%;
}

.mega-header .nav-link.active {
  color: var(--primary-color);
}

.mega-header .nav-link.active::after {
  width: 80%;
}

.mega-header .auth-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.mega-header .auth-buttons .btn-outline-secondary {
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.mega-header .auth-buttons .btn-outline-secondary:hover {
  background: var(--gradient-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mega-header .auth-buttons .btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(246, 114, 128, 0.2);
}

.mega-header .auth-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 114, 128, 0.3);
}

.mega-header .navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  background: var(--gradient-light);
}

.mega-header .navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .mega-header .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .mega-header .nav-link::after {
    display: none;
  }

  .mega-header .auth-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
  }
}

/* Dropdown Menu Styling */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  min-width: 220px;
  margin-top: 0.5rem;
}

.dropdown-menu-animated {
  animation: dropdownFade 0.2s ease;
  transform-origin: top center;
}

.dropdown-item {
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius);
  color: var(--gray-700);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.dropdown-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: var(--gradient-light);
  color: var(--primary-color);
  transform: translateX(3px);
}

.dropdown-item:hover i {
  transform: scale(1.1);
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-color: var(--gray-200);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Navbar Dropdown Toggle */
.nav-link.dropdown-toggle::after {
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Dashboard Navigation */
.dashboard-nav {
  background: linear-gradient(135deg, rgba(246, 114, 128, 0.05) 0%, rgba(192, 108, 132, 0.05) 100%);
  border-bottom: 1px solid rgba(192, 108, 132, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(192, 108, 132, 0.1);
}

.dashboard-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dashboard-brand:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.dashboard-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-nav-links .nav-link {
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.dashboard-nav-links .nav-link:hover {
  color: var(--primary-color);
  background: rgba(246, 114, 128, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dashboard-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s ease;
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--gradient-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Sidebar Enhancements consolidated above */

/* Dashboard Footer */
.dashboard-footer {
  margin-top: auto;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 0;
  font-size: 0.875rem;
}

.dashboard-footer p {
  margin-bottom: 0;
}

/* Avatar Circle */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Payroll Tab Styles */
#hrTabs .nav-link {
  color: var(--gray-600);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

#hrTabs .nav-link:hover {
  color: var(--primary-color);
  border-color: transparent;
}

#hrTabs .nav-link.active {
  color: var(--primary-color);
  background: transparent;
  border-bottom-color: var(--primary-color);
}

/* Payroll Summary Cards */
.payroll-summary-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.payroll-summary-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Toast Container */
.toast-container {
  z-index: 9999 !important;
}

/* RTL Styles for Dashboard Sidebar */
[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--gray-200);
}

[dir="rtl"] .sidebar .nav-link:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .sidebar .nav-link.active::before {
  left: auto;
  right: -1rem;
}

[dir="rtl"] .main-content {
  margin-left: 0 !important;
  margin-right: 280px !important;
}

/* Mobile RTL Sidebar */
@media (max-width: 768px) {
  [dir="rtl"] .sidebar {
    left: auto;
    right: -280px;
  }

  [dir="rtl"] .sidebar.show {
    left: auto;
    right: 0;
  }

  [dir="rtl"] .main-content {
    margin-right: 0 !important;
  }
}

@media (max-width: 991.98px) {
  [dir="rtl"] .sidebar {
    transform: translateX(100%);
  }

  [dir="rtl"] .sidebar.show {
    transform: translateX(0);
  }
}

/* Desktop RTL Sidebar */
@media (min-width: 992px) {
  [dir="rtl"] .sidebar {
    left: auto !important;
    right: 0 !important;
  }

  [dir="rtl"] .main-content {
    margin-left: 0 !important;
    margin-right: 280px !important;
    transition: margin-right 0.3s ease;
  }

  [dir="rtl"] .sidebar.collapsed ~ .main-content {
    margin-right: 80px !important;
  }

  [dir="rtl"] .sidebar-overlay {
    display: none !important;
  }
}

/* RTL Collapsed Sidebar */
[dir="rtl"] .sidebar.collapsed {
  border-right: none;
  border-left: 1px solid var(--gray-200);
}

/* RTL Dashboard Container */
[dir="rtl"] .dashboard-container {
  flex-direction: row-reverse;
}

/* RTL Sidebar Nav Icons */
[dir="rtl"] .sidebar .nav-link i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* RTL Navbar adjustments for dashboard */
[dir="rtl"] .navbar .dropdown.ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] .navbar .btn.d-lg-none {
  margin-right: 0 !important;
  margin-left: 0.75rem !important;
}