:root {
  --primary-gradient: linear-gradient(45deg, #5ce1e6 0%, #8c7ae6 100%);
  --dark-blue: #1e3a8a;
  --light-blue: #5ce1e6;
  --purple: #8c7ae6;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 30px 15px;
  text-align: center;
  margin: 0 auto;
}

.logo-container {
  margin-bottom: 20px;
}

.brand-name {
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

.login-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.login-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.form-control {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.2);
}

.form-check-label {
  color: #555;
  font-size: 0.9rem;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.forgot-password {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--purple);
}

.btn-login {
  background-color: var(--dark-blue);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #112251;
  color: #ffff;
  transform: translateY(-2px);
}

/* Sidebar Styles - assets/css/sidebar.css */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 40px;
  color: #4a90e2;
  filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.3));
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-bottom: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: #6b7280;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
}

.nav-link:hover {
  background-color: #f8fafc;
  color: #4a90e2;
  text-decoration: none;
  transform: translateX(5px);
}

.nav-link.active {
  color: #4a90e2;
  background-color: #f0f7ff;
  border-right: 3px solid #4a90e2;
}

.nav-icon {
  margin-right: 15px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.nav-text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Global Header Styles - assets/css/header.css */

.main-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  position: fixed;
  top: 0;
  right: 0;
  left: 280px; /* Account for sidebar width */
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  max-width: 100%;
}

/* Left side - Greeting */
.header-left {
  flex: 1;
}

.greeting-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.025em;
}

/* Right side - User Profile */
.header-right {
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 15px;
  border-radius: 25px;
  border: 1px solid #e2e8f0;
}

/* User Avatar */
.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.avatar-text {
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

/* User Name */
.user-name {
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  margin-right: 5px;
}

/* Simple Dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* .dropdown-btn:hover {
  background: #e2e8f0;
} */

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  margin-top: 5px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: #374151;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f8fafc;
  color: #4a90e2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .main-header {
    left: 0;
    padding: 10px 0;
  }

  .header-content {
    padding: 0 15px;
  }

  .greeting-text {
    font-size: 16px;
  }

  .user-name {
    display: none; /* Hide user name on mobile */
  }

  .user-profile {
    padding: 6px 10px;
    gap: 8px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
  }

  .avatar-text {
    font-size: 14px;
  }
}

/* Adjust main content when header is present */
.main-content {
  padding-top: 80px; /* Account for fixed header height */
}

/* Header with sidebar toggle (mobile) */
@media (max-width: 768px) {
  .main-header.with-toggle {
    left: 0;
  }

  .header-content.with-toggle {
    padding-left: 60px; /* Account for hamburger menu */
  }
}

/* Animation for smooth transitions */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: slideDown 0.2s ease-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .main-header {
    background: #1f2937;
    border-bottom-color: #374151;
  }

  .greeting-text {
    color: #f9fafb;
  }

  .user-name {
    color: #f9fafb;
  }

  .user-profile {
    background: #374151;
    border-color: #4b5563;
  }

  .user-profile:hover {
    background: #4b5563;
  }

  .dropdown-menu {
    background: #374151;
    border-color: #4b5563;
  }

  .dropdown-item {
    color: #f9fafb;
  }

  .dropdown-item:hover {
    background: #4b5563;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .main-header {
    left: 0;
    padding: 10px 0;
  }

  .header-content {
    padding: 0 15px;
  }

  .greeting-text {
    font-size: 14px;
  }

  .user-name {
    display: none; /* Hide user name on mobile */
  }

  .user-profile {
    padding: 6px 10px;
    gap: 8px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
  }

  .avatar-text {
    font-size: 14px;
  }
}

/* Adjust main content when header is present */
.main-content {
  padding-top: 80px; /* Account for fixed header height */
}

/* Header with sidebar toggle (mobile) */
@media (max-width: 768px) {
  .main-header.with-toggle {
    left: 0;
  }

  .header-content.with-toggle {
    padding-left: 60px; /* Account for hamburger menu */
  }
}

/* Animation for smooth transitions */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: slideDown 0.2s ease-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .main-header {
    background: #1f2937;
    border-bottom-color: #374151;
  }

  .greeting-text {
    color: #f9fafb;
  }

  .user-name {
    color: #f9fafb;
  }

  .user-profile {
    background: #374151;
    border-color: #4b5563;
  }

  .user-profile:hover {
    background: #4b5563;
  }

  .dropdown-menu {
    background: #374151;
    border-color: #4b5563;
  }

  .dropdown-item {
    color: #f9fafb;
  }

  .dropdown-item:hover {
    background: #4b5563;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
  }
}

/* Desktop Layout Adjustment */
@media (min-width: 769px) {
  .main-content {
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
    background-color: #f8fafc;
  }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e0;
}

/* Mobile Toggle Button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }
}

@media (min-width: 1400px) {
  .login-container {
    max-width: 500px;
  }

  .water-drop {
    width: 100px;
    height: 100px;
    padding: 10em 0;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .login-title {
    font-size: 2.2rem;
  }

  .login-form {
    padding: 40px;
  }

  .form-control {
    padding: 14px;
    font-size: 1.1rem;
  }

  .btn-login {
    padding: 12px 28px;
    font-size: 1.1rem;
  }
}

/* Medium desktop screens (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .login-container {
    max-width: 480px;
  }
}

/* Tablet screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 1035px) {
  .sidebar-toggle {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
  }
}
.login-container {
  max-width: 450px;
}

/* Large mobile screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .login-container {
    max-width: 400px;
    padding: 20px 15px;
  }

  .login-form {
    padding: 25px;
  }

  .login-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
}

/* Small mobile screens (up to 575px) */
@media (max-width: 575px) {
  .login-container {
    padding: 15px 10px;
    max-width: 100%;
    width: 90%;
  }

  .objects-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .objects-image {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .login-form {
    padding: 20px 15px;
  }

  .login-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .form-control {
    padding: 10px;
  }

  .login-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .btn-login {
    width: 100%;
    padding: 10px;
  }

  .forgot-password {
    align-self: center;
    margin-bottom: 5px;
  }
}

/* Extra small mobile screens (up to 375px) */
@media (max-width: 375px) {
  .login-container {
    width: 95%;
    padding: 10px 5px;
  }

  .login-form {
    padding: 15px 12px;
  }

  .login-title {
    font-size: 1.3rem;
  }
}

/* Customer Design Layout */
/* Base Layout */
.main-content {
  margin-left: 280px;
  padding: 90px 20px 20px 20px;
  min-height: 100vh;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

/* Filters Section - Responsive */
.filters-section {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-dropdown {
  min-width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  background: white;
  font-size: 14px;
  flex: 1;
  max-width: 180px;
}

.filter-btn {
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.add-customer-btn {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.add-customer-btn:hover {
  background: #059669;
}

.search-section {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  margin-left: auto;
}

.search-input {
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 8px 12px;
  flex: 1;
  font-size: 14px;
}

.search-btn {
  background: #4a90e2;
  color: white;
  border: 1px solid #4a90e2;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  flex-shrink: 0;
}

/* Additional styles for new fields */
.phone-number {
  color: #059669;
  font-weight: 500;
}

.address {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  max-width: 200px;
  display: block;
}

/* Table Container with Horizontal Scroll */
.table-container {
  overflow-x: auto;
  margin: 20px -20px;
  padding: 0 20px;
  border-radius: 8px;
}

.customer-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

.table-header {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-header th {
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
  text-align: left;
}

.customer-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.customer-row:hover {
  background-color: #f8fafc;
}

.customer-row td {
  padding: 12px 16px;
  vertical-align: middle;
  border: none;
  font-size: 14px;
}

.container-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.container-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 30px;
}

.badge-slim {
  background: #10b981;
  color: white;
}

.badge-round {
  background: #3b82f6;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.btn-view {
  background: #10b981;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-edit {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Pagination - Responsive */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  color: #6b7280;
  font-size: 13px;
  flex-shrink: 0;
}

.pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
}

.page-btn:hover {
  background: #f8fafc;
  color: #4a90e2;
  text-decoration: none;
}

.page-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    padding: 80px 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .content-card {
    padding: 15px;
    margin: 0 -5px 20px -5px;
    border-radius: 8px;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
  }

  .filter-dropdown {
    min-width: auto;
    max-width: none;
  }

  .search-section {
    margin-left: 0;
    max-width: none;
    min-width: auto;
  }

  .table-container {
    margin: 15px -15px;
    padding: 0 15px;
  }

  .customer-table {
    min-width: 900px;
  }

  .table-header th {
    padding: 10px 12px;
    font-size: 11px;
  }

  .customer-row td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .container-badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 25px;
  }

  .btn-view,
  .btn-edit {
    padding: 4px 8px;
    font-size: 10px;
  }

  .pagination-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pagination-info {
    margin-bottom: 10px;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 75px 10px 10px 10px;
  }

  .content-card {
    padding: 12px;
    margin: 0 -2px 15px -2px;
  }

  .filters-section {
    gap: 8px;
  }

  .filter-dropdown {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
  .search-input {
    padding: 6px 10px;
    font-size: 13px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .customer-table {
    min-width: 650px;
    font-size: 12px;
  }

  .table-header th {
    padding: 8px 10px;
    font-size: 10px;
  }

  .customer-row td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .page-btn {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 28px;
  }
}

/* Scroll indicator for table */
.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Table scroll shadow effect */
.table-container {
  background: linear-gradient(90deg, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), white 70%) 100% 0,
    radial-gradient(
      farthest-side at 0 50%,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(
        farthest-side at 100% 50%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      )
      100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Customer Modal Styling */
#customerModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#customerModal .modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 25px 15px 25px;
}

#customerModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

#customerModal .btn-close {
  font-size: 20px;
  opacity: 0.5;
}

#customerModal .btn-close:hover {
  opacity: 0.8;
}

#customerModal .modal-body {
  padding: 25px;
}

#customerModal .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

#customerModal .form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

#customerModal textarea.form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 60px;
}

#customerModal textarea.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  background-color: white;
}

#customerModal select.form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 40px;
}

#customerModal select.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  background-color: white;
}

#customerModal .modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 15px 25px 20px 25px;
  gap: 10px;
}

#customerModal .btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#customerModal .btn-primary {
  background: #4a90e2;
  color: white;
}

#customerModal .btn-primary:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#customerModal .btn-danger {
  background: #ef4444;
  color: white;
}

#customerModal .btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Container section styling */
#customerModal .mb-4 h6 {
  color: #374151;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #customerModal .modal-dialog {
    margin: 10px;
  }

  #customerModal .modal-header,
  #customerModal .modal-body,
  #customerModal .modal-footer {
    padding: 15px 20px;
  }

  #customerModal .modal-title {
    font-size: 16px;
  }

  #customerModal .form-control {
    padding: 10px 12px;
    font-size: 13px;
  }

  #customerModal .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* delieveries design */
/* Base Layout */
.main-content {
  margin-left: 280px;
  padding: 90px 20px 20px 20px;
  min-height: 100vh;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

/* Filters Section - Responsive */
.filters-section {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-dropdown {
  min-width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  background: white;
  font-size: 14px;
  flex: 1;
  max-width: 180px;
}

.filter-btn {
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #357abd;
}

.add-delivery-btn {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.add-delivery-btn:hover {
  background: #059669;
}

.search-section {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  margin-left: auto;
}

.search-input {
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 8px 12px;
  flex: 1;
  font-size: 14px;
}

.search-btn {
  background: #4a90e2;
  color: white;
  border: 1px solid #4a90e2;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  flex-shrink: 0;
}

.search-btn:hover {
  background: #357abd;
}

/* Table Container with Horizontal Scroll */
.table-container {
  overflow-x: auto;
  margin: 20px -20px;
  padding: 0 20px;
  border-radius: 8px;
}

.delivery-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
}

.table-header {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-header th {
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
  text-align: left;
}

.delivery-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.delivery-row:hover {
  background-color: #f8fafc;
}

.delivery-row td {
  padding: 12px 16px;
  vertical-align: middle;
  border: none;
  font-size: 14px;
}

.container-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.container-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 30px;
}

.badge-slim {
  background: #10b981;
  color: white;
}

.badge-round {
  background: #3b82f6;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.btn-view {
  background: #10b981;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-edit {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Pagination - Responsive */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  color: #6b7280;
  font-size: 13px;
  flex-shrink: 0;
}

.pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
}

.page-btn:hover {
  background: #f8fafc;
  color: #4a90e2;
  text-decoration: none;
}

.page-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    padding: 80px 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .content-card {
    padding: 15px;
    margin: 0 -5px 20px -5px;
    border-radius: 8px;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
  }

  .filter-dropdown {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }

  .search-section {
    margin-left: 0;
    max-width: none;
    min-width: auto;
  }

  .table-container {
    margin: 15px -15px;
    padding: 0 15px;
  }

  .delivery-table {
    min-width: 1000px;
  }

  .table-header th {
    padding: 10px 12px;
    font-size: 11px;
  }

  .delivery-row td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .container-badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 25px;
  }

  .btn-view,
  .btn-edit {
    padding: 4px 8px;
    font-size: 10px;
  }

  .pagination-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pagination-info {
    margin-bottom: 10px;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 75px 10px 10px 10px;
  }

  .content-card {
    padding: 12px;
    margin: 0 -2px 15px -2px;
  }

  .filters-section {
    gap: 8px;
  }

  .filter-dropdown {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }

  .search-input {
    padding: 6px 10px;
    font-size: 13px;
  }

  .filter-btn,
  .add-delivery-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .delivery-table {
    min-width: 900px;
    font-size: 12px;
  }

  .table-header th {
    padding: 8px 10px;
    font-size: 10px;
  }

  .delivery-row td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .page-btn {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 28px;
  }
}

/* Scroll indicator for table */
.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Table scroll shadow effect */
.table-container {
  background: linear-gradient(90deg, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), white 70%) 100% 0,
    radial-gradient(
      farthest-side at 0 50%,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(
        farthest-side at 100% 50%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      )
      100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Deliveries Modal Styling */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 25px 15px 25px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.btn-close {
  font-size: 20px;
  opacity: 0.5;
}

.btn-close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 25px;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  background-color: white;
}

.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 15px 25px 20px 25px;
  gap: 10px;
}

.btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #4a90e2;
  color: white;
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Container section styling */
.mb-4 h6 {
  color: #374151;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px 20px;
  }

  .modal-title {
    font-size: 16px;
  }

  .form-control {
    padding: 8px 10px;
    font-size: 13px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px;
  }

  .col-md-6 {
    margin-bottom: 15px;
  }
}

/* Sales Report Style Layout */
/* Base Layout */
.main-content {
  margin-left: 280px;
  padding: 90px 20px 20px 20px;
  min-height: 100vh;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

/* Filters Section - Extended */
.filters-section {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-dropdown {
  min-width: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  background: white;
  font-size: 14px;
  flex: 1;
  max-width: 160px;
}

.filter-btn {
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #357abd;
}

.print-btn {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  white-space: nowrap;
}

.print-btn:hover {
  background: #059669;
}

/* Table Container with Horizontal Scroll */
.table-container {
  overflow-x: auto;
  margin: 20px -20px;
  padding: 0 20px;
  border-radius: 8px;
}

.sales-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
}

.table-header {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-header th {
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
  text-align: left;
}

.sales-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.sales-row:hover {
  background-color: #f8fafc;
}

.sales-row td {
  padding: 12px 16px;
  vertical-align: middle;
  border: none;
  font-size: 14px;
}

.container-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.container-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 30px;
}

.badge-slim {
  background: #10b981;
  color: white;
}

.badge-round {
  background: #3b82f6;
  color: white;
}

/* Total row styling */
.total-row {
  background-color: #f8fafc;
  border-top: 2px solid #e5e7eb;
  font-weight: 600;
}

.total-row td {
  padding: 15px 16px;
  font-size: 16px;
  color: #374151;
}

.total-amount {
  color: #059669;
  font-weight: 700;
  font-size: 18px;
}

/* Pagination - Responsive */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  color: #6b7280;
  font-size: 13px;
  flex-shrink: 0;
}

.pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
}

.page-btn:hover {
  background: #f8fafc;
  color: #4a90e2;
  text-decoration: none;
}

.page-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    padding: 80px 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .content-card {
    padding: 15px;
    margin: 0 -5px 20px -5px;
    border-radius: 8px;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
  }

  .filter-dropdown {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }

  .table-container {
    margin: 15px -15px;
    padding: 0 15px;
  }

  .sales-table {
    min-width: 1200px;
  }

  .table-header th {
    padding: 10px 12px;
    font-size: 11px;
  }

  .sales-row td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .container-badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 25px;
  }

  .pagination-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pagination-info {
    margin-bottom: 10px;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 75px 10px 10px 10px;
  }

  .content-card {
    padding: 12px;
    margin: 0 -2px 15px -2px;
  }

  .filters-section {
    gap: 8px;
  }

  .filter-dropdown {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
  }

  .filter-btn,
  .print-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .sales-table {
    min-width: 1100px;
    font-size: 12px;
  }

  .table-header th {
    padding: 8px 10px;
    font-size: 10px;
  }

  .sales-row td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .page-btn {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 28px;
  }
}

/* Scroll indicator for table */
.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Print styles */
@media print {
  .main-content {
    margin-left: 0;
    padding: 0;
  }

  .filters-section,
  .pagination-section {
    display: none;
  }

  .table-container {
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .sales-table {
    min-width: auto;
    width: 100%;
  }
}

/* Route Design Main Styling */
.main-content {
  margin-left: 280px;
  padding: 90px 20px 20px 20px;
  min-height: 100vh;
  background-color: #f8fafc;
  overflow-x: hidden;
  width: 100%;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  width: 100%; /* Make card stretch full width of parent */
  box-sizing: border-box;
}

/* Top Section - Add Routes and Search */
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.add-route-btn {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-route-btn:hover {
  background: #059669;
}

.search-section {
  display: flex;
  gap: 0;
  min-width: 250px;
  max-width: 350px;
}

.search-input {
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 15px;
  flex: 1;
  font-size: 14px;
}

.search-input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.search-btn {
  background: #4a90e2;
  color: white;
  border: 1px solid #4a90e2;
  border-radius: 0 8px 8px 0;
  padding: 10px 15px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #357abd;
}

/* Routes Table */
.table-wrapper {
  overflow-x: auto;
  margin: 20px -20px -20px -20px;
  padding: 0 20px 20px 20px;
  border-radius: 8px;
}

.routes-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin-top: 20px;
}

.table-header {
  background: #f8fafc;
}

.table-header th {
  padding: 20px 25px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.route-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.route-row:hover {
  background-color: #f8fafc;
}

.route-row td {
  padding: 20px 25px;
  vertical-align: middle;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  text-align: center;
}

.route-name {
  font-weight: 500;
  color: #374151;
}

.edit-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.empty-state h5 {
  color: #374151;
  margin-bottom: 10px;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 15px;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
}

.pagination-controls {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  min-width: 36px;
  text-align: center;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: #f8fafc;
  color: #4a90e2;
  text-decoration: none;
  border-color: #cbd5e0;
}

.page-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

/* Mobile Responsive Styles */

@media (min-width: 1920px) {
  .content-card {
    max-width: none; /* Remove max-width restriction */
    margin-left: 0; /* Remove auto-centering */
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    padding: 80px 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .content-card {
    padding: 15px;
    margin: 0 -10px 20px -10px;
    border-radius: 8px;
    overflow-x: hidden;
  }

  .top-section {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .search-section {
    min-width: auto;
    max-width: none;
  }

  .table-wrapper {
    margin: 20px -15px -15px -15px;
    padding: 0 15px 15px 15px;
  }

  .routes-table {
    min-width: 500px;
  }

  .table-header th,
  .route-row td {
    padding: 15px 20px;
    font-size: 13px;
  }

  .pagination-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .pagination-controls {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 75px 10px 10px 10px;
  }

  .content-card {
    padding: 12px;
    margin: 0 -5px 15px -5px;
    border-radius: 6px;
  }

  .add-route-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .search-input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .search-btn {
    padding: 8px 12px;
  }

  .table-wrapper {
    margin: 15px -12px -12px -12px;
    padding: 0 12px 12px 12px;
  }

  .routes-table {
    min-width: 450px;
  }

  .table-header th,
  .route-row td {
    padding: 12px 15px;
    font-size: 12px;
  }

  .edit-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .page-btn {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 32px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .content-card {
    padding: 10px;
    margin: 0 -2px 15px -2px;
  }

  .table-wrapper {
    margin: 15px -10px -10px -10px;
    padding: 0 10px 10px 10px;
  }

  .routes-table {
    min-width: 400px;
  }

  .table-header th,
  .route-row td {
    padding: 10px 12px;
    font-size: 11px;
  }

  .add-route-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .search-input {
    padding: 6px 10px;
    font-size: 12px;
  }

  .search-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .edit-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* Horizontal scroll indicators */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Table scroll shadow effect */
.table-wrapper {
  background: linear-gradient(90deg, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), white 70%) 100% 0,
    radial-gradient(
      farthest-side at 0 50%,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(
        farthest-side at 100% 50%,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0)
      )
      100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Route Modal Styling */
#routeModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#routeModal .modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 25px 15px 25px;
}

#routeModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

#routeModal .btn-close {
  font-size: 20px;
  opacity: 0.5;
}

#routeModal .btn-close:hover {
  opacity: 0.8;
}

#routeModal .modal-body {
  padding: 25px;
}

#routeModal .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

#routeModal .form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  min-height: 45px;
}

#routeModal .form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  background-color: white;
  outline: none;
}

#routeModal .form-control::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

#routeModal .modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 15px 25px 20px 25px;
  justify-content: flex-start;
}

#routeModal .btn {
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#routeModal .btn-primary {
  background: #4a90e2;
  color: white;
  min-width: 80px;
}

#routeModal .btn-primary:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#routeModal .btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #routeModal .modal-dialog {
    margin: 10px;
  }

  #routeModal .modal-header,
  #routeModal .modal-body,
  #routeModal .modal-footer {
    padding: 15px 20px;
  }

  #routeModal .modal-title {
    font-size: 16px;
  }

  #routeModal .form-control {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 42px;
  }

  #routeModal .btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* Loading state */
#routeModal .btn-primary.loading {
  position: relative;
  color: transparent;
}

#routeModal .btn-primary.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
