:root {
  /* Base Colors */
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Light Mode Colors */
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-2: #e9ecef;
  --border: #dee2e6;
  --text: #212529;
  --text-secondary: #6c757d;
  --input-bg: #ffffff;
  --hover: #f8f9fa;
  --active: #e9ecef;
  
  /* Shared Properties */
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Status Colors */
  --status-pending: #ff4d4d;
  --status-in-progress: #2196f3;
  --status-resolved: #4caf50;
  --status-auto-solve: #ff9800;
  --status-cancel: #9e9e9e;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  min-height: 100vh;
}

.container {
  width: 95%;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--surface);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  display: none;
  z-index: 1000;
  animation: slideIn 0.5s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Dealer Info Styles */
.dealer-info {
  background: linear-gradient(135deg, #0d6efd, #084298);
  background-image: 
    linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(8, 66, 152, 0.95)),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 3px solid #ffffff;
}

.dealer-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  opacity: 0.2;
  z-index: 0;
}

.dealer-info:hover {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35);
  transform: translateY(-2px);
}

.dealer-info-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dealer-info-header h5 {
  color: #ffffff;
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dealer-info-header h5 i {
  margin-right: 8px;
  color: #0d6efd;
  background-color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dealer-info-content {
  padding: 0 5px;
  position: relative;
  z-index: 1;
}

.dealer-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.9);
  border-left: 3px solid transparent;
}

.dealer-info-item:hover {
  background-color: #ffffff;
  border-left: 3px solid #ffffff;
  transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dealer-info-item i {
  font-size: 18px;
  color: #0d6efd;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dealer-info-item:hover i {
  background-color: #0d6efd;
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.dealer-info-text {
  flex: 1;
}

.dealer-info-text label {
  display: block;
  font-size: 12px;
  color: #0a58ca;
  margin-bottom: 2px;
  font-weight: 500;
}

.dealer-info-text span {
  display: block;
  font-size: 15px;
  color: #212529;
  font-weight: 600;
  word-break: break-word;
}

/* Google Ads Container */
.google-ads-container {
  background-color: #000000;
  background-image: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  border-radius: 12px;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border-top: 3px solid #0d6efd;
  transition: all 0.3s ease;
}

.google-ads-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.15) 25%, transparent 25%, transparent 50%, rgba(13, 110, 253, 0.15) 50%, rgba(13, 110, 253, 0.15) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 0;
}

.google-ads-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.ads-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.ads-placeholder i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  color: #0d6efd;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 5px rgba(13, 110, 253, 0.5));
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ads-placeholder p {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.ads-placeholder small {
  font-size: 12px;
  opacity: 0.8;
  color: #0d6efd;
}

@media (max-width: 768px) {
  .google-ads-container {
    margin-top: 20px;
    min-height: 200px;
  }
  
  .dealer-info-item {
    margin-bottom: 12px;
  }
}

/* Card styles */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.card-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Table styles */
.table {
  color: var(--text);
  border-color: var(--border);
}

.table td,
.table th {
  border-color: var(--border);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown menus */
.dropdown-menu {
  background-color: var(--surface);
  border-color: var(--border);
}

.dropdown-item {
  color: var(--text);
}

.dropdown-item:hover {
  background-color: var(--hover);
  color: var(--text);
}

/* Form Controls */
.form-control,
.form-select {
  background-color: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > label {
  color: var(--text-secondary);
  background-color: transparent;
}

/* Status Badge Styles */
.status-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: none;
}

.status-badge.status-pending {
  background-color: #dc3545;
}

.status-badge.status-in-progress {
  background-color: #0d6efd;
}

.status-badge.status-resolved {
  background-color: #198754;
}

.status-badge.status-auto-solve {
  background-color: #fd7e14;
}

.status-badge.status-cancel {
  background-color: #6c757d;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Engineer List Styles */
.engineer-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.engineer-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  z-index: 2;
}

.engineer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-right: 15px;
}

.engineer-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
  word-break: break-word;
}

.engineer-name i {
  color: var(--primary-color);
  margin-right: 8px;
}

.engineer-phone {
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  word-break: break-word;
}

.engineer-phone i {
  color: var(--info-color);
  margin-right: 8px;
}

.engineer-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.delete-engineer {
  color: var(--danger-color);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.1rem;
  margin-left: auto;
}

.delete-engineer:hover {
  background-color: var(--danger-color);
  color: white;
  transform: scale(1.1);
}

/* Base Modal Styles */
.modal {
  z-index: 9999;
}

.modal-backdrop {
  z-index: 9998;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

/* Engineer Modal Specific Styles */
#engineerPopup {
  z-index: 9999;
}

#engineerPopup .modal-dialog {
  z-index: 10000;
}

#engineerPopup .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Delete Engineer Confirmation Modal */
.swal2-container {
  z-index: 10001 !important;
}

.swal2-popup {
  z-index: 10002 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.swal2-backdrop {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(3px) !important;
}

/* Ensure delete confirmation is always on top */
.swal2-container.swal2-shown {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(3px);
}

/* Animation for delete confirmation */
.swal2-popup.swal2-show {
  animation: swal2-show 0.2s !important;
}

@keyframes swal2-show {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Styling delete confirmation buttons */
.swal2-confirm.swal2-styled {
  background-color: var(--danger-color) !important;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3) !important;
}

.swal2-cancel.swal2-styled {
  background-color: var(--secondary-color) !important;
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3) !important;
}

/* Ensure proper layering of modals */
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-open .swal2-container {
  overflow-y: auto;
}

/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

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

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

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

/* Invoice Template Styles */
.invoice-container {
  width: 700px;
  margin: 30px auto;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  border-radius: 8px;
}

.invoice-header {
  position: relative;
  background: #0b60d1;
  height: 150px;
  color: #fff;
  padding: 20px;
}

.invoice-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 20px;
}

.invoice-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  font-weight: 500;
}

.invoice-header::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 150" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M-8.78,48.00 C152.39,120.90 320.78,-37.25 507.22,69.31 L500.00,0.00 L0.00,0.00 Z" style="stroke: none; fill: %23fff;"></path></svg>') no-repeat;
  background-size: cover;
}

.invoice-body {
  padding: 20px 30px;
  margin-top: -40px;
}

.invoice-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.info-block {
  width: 48%;
  min-width: 280px;
}

.info-block h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #0b60d1;
  font-weight: 600;
}

.info-block p {
  margin: 3px 0;
}

.date-row {
  margin: 10px 0 20px;
  font-size: 14px;
}

.date-row span {
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table thead {
  background-color: #efefef;
}

table thead th {
  text-align: left;
  padding: 10px;
  font-weight: 600;
}

table tbody td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  word-wrap: break-word;
}

table tfoot td {
  padding: 10px;
  border-top: 2px solid #0b60d1;
  text-align: right;
}

.totals-row {
  text-align: right;
  font-weight: 600;
}

.payment-mode {
  text-align: center;
  font-style: italic;
  color: #777;
  margin-top: 20px;
  font-size: 16px;
}

.thank-you {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 10px;
  color: #0b60d1;
}

.btn-group .dropdown-menu {
  position: absolute !important;
  inset: 0px auto auto 0px !important;
  margin: 0px !important;
  transform: translate3d(0px, 40px, 0px) !important;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  padding: 10px 0;
  border: none;
  min-width: 220px;
  z-index: 1200 !important;
}

.btn-group .dropdown-item {
  padding: 10px 20px;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1200;
}

.btn-group .dropdown-item i {
  width: 20px;
  color: #6c757d;
  transition: all 0.2s ease;
}

.btn-group .dropdown-item:hover {
  background: #f8f9fa;
  color: #0d6efd;
  padding-left: 25px;
}

.btn-group .dropdown-item:hover i {
  color: #0d6efd;
}

#dateFilterBtn {
  position: relative;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 15px;
  font-weight: 500;
  z-index: 1200;
}

/* Remove animation to prevent z-index issues */
.dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s ease;
}

.dropdown-menu.show {
  visibility: visible;
  opacity: 1;
}

/* Header Controls Container */
.card.mb-4 {
  position: relative;
  z-index: 1100;
}

/* Analytics Dashboard */
.row.mb-4 {
  position: relative;
  z-index: 1000;
}

/* Add these new styles */
#engineerList {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  margin: -10px;
}

/* Ensure the engineer form stays at the top */
#engineerForm {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 15px 0;
  z-index: 3;
  margin: -15px 0;
}

/* Table Row Status Styles */
#complaintTable tbody tr {
  transition: background-color 0.3s ease;
}

#complaintTable tbody tr[data-status="Pending"] {
  background-color: #f8d7da !important;
}

#complaintTable tbody tr[data-status="In Progress"] {
  background-color: #d6eaf8 !important;
}

#complaintTable tbody tr[data-status="Resolved"] {
  background-color: #d4efdf !important;
}

#complaintTable tbody tr[data-status="Auto Solve"] {
  background-color: #fdebd0 !important;
}

#complaintTable tbody tr[data-status="Cancel"] {
  background-color: #eaecee !important;
}

/* Remove any existing vertical lines or borders */
#complaintTable tbody tr td:first-child {
  border-left: none !important;
}

/* Ensure proper contrast for text in colored rows */
#complaintTable tbody tr td {
  color: #212529 !important;
}

/* Hover effect for better UX */
#complaintTable tbody tr:hover {
  filter: brightness(0.95);
}

/* Table Styles */
#complaintTable {
    border-collapse: collapse;
    width: 100%;
}

#complaintTable th,
#complaintTable td {
    border-right: 1px solid #dee2e6;
    padding: 12px;
}

#complaintTable th:last-child,
#complaintTable td:last-child {
    border-right: none;
}

#complaintTable tbody tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #dee2e6;
}

/* Remove left border/line completely */
#complaintTable tbody tr td:first-child {
    border-left: none !important;
}

/* Status-based row background colors */
#complaintTable tbody tr[data-status="Pending"] {
    background-color: #f8d7da !important;
}

#complaintTable tbody tr[data-status="In Progress"] {
    background-color: #d6eaf8 !important;
}

#complaintTable tbody tr[data-status="Resolved"] {
    background-color: #d4efdf !important;
}

#complaintTable tbody tr[data-status="Auto Solve"] {
    background-color: #fdebd0 !important;
}

#complaintTable tbody tr[data-status="Cancel"] {
    background-color: #eaecee !important;
}

/* Import Excel button styling */
label.btn-outline-primary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.15s ease-in-out !important;
}

label.btn-outline-primary:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Analytics Dashboard Cards */
.row.mb-4 .card {
    height: 100%;
    min-width: 140px;
    transition: transform 0.2s ease;
}

.row.mb-4 .card:hover {
    transform: translateY(-3px);
}

.row.mb-4 .card-body {
    padding: 1rem;
}

.row.mb-4 .card-title {
    font-size: 0.9rem;
  margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row.mb-4 .card h3 {
    font-size: 1.5rem;
  margin: 0;
}

@media (max-width: 1200px) {
    .row.mb-4 .card-title {
        font-size: 0.8rem;
    }
    
    .row.mb-4 .card h3 {
        font-size: 1.2rem;
    }
}

/* Top Navigation Buttons */
  .btn-group {
    gap: 8px;
    flex-wrap: wrap;
}

.btn-group > .btn {
    border-radius: 6px !important;
    padding: 8px 16px;
    transition: all 0.3s ease;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-group > .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-group > .btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

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

/* Export and Import Buttons */
.export-dropdown .btn,
.btn-outline-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
}

.export-dropdown .btn:hover,
.btn-outline-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Action Column Icons */
.btn-group-sm > .btn {
    color: white !important;
}

.btn-info i,
.btn-warning i {
    color: white !important;
}

/* Sortable Columns */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px !important;
    user-select: none;
}

.sortable:hover {
    background-color: #212529 !important;
}

.sort-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    color: white;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

/* Action Buttons Styling */
.btn-group-sm {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.btn-group-sm > .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-group-sm > .btn:active {
    transform: translateY(0);
}

.btn-group-sm > .btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-group-sm > .btn:hover i {
    transform: scale(1.1);
}

/* Specific button colors */
.btn-group-sm > .btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-group-sm > .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-group-sm > .btn-info:hover {
    background-color: #0bb5d8;
    border-color: #0bb5d8;
}

.btn-group-sm > .btn-warning:hover {
    background-color: #e5ac06;
    border-color: #e5ac06;
}

/* Ensure white text on info and warning buttons */
.btn-group-sm > .btn-info,
.btn-group-sm > .btn-warning {
    color: white !important;
}

.btn-group-sm > .btn-info:hover,
.btn-group-sm > .btn-warning:hover {
    color: white !important;
}

/* Add tooltip styles */
.btn-group-sm > .btn[title] {
    position: relative;
}

.btn-group-sm > .btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Fixed width icons */
.fa-fw {
    text-align: center;
    width: 1.25em;
}

/* Table Header Styles */
#complaintTable thead {
    background-color: #0d6efd !important;
}

#complaintTable thead th {
    color: white !important;
    background-color: #0d6efd !important;
    font-weight: 500;
    border-bottom: none;
    position: relative;
}

/* Remove hover effect from sortable headers */
.sortable:hover {
    background-color: #0d6efd !important;
}

/* Adjust sort icon for better visibility */
.sort-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    color: white;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

/* Page Size Selector Styles */
#pageSizeSelect {
    min-width: 80px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#pageSizeSelect:hover {
    border-color: #0d6efd;
}

#pageSizeSelect:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Update pagination styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.page-info {
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.375rem 0;
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, #0d6efd, #084298);
  background-image: 
    linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(8, 66, 152, 0.95)),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: white;
  padding: 20px 0;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.25);
  margin-bottom: 20px;
  position: relative;
  z-index: 100;
  border-bottom: 3px solid #ffffff;
  overflow: hidden;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  opacity: 0.2;
  z-index: 0;
}

.header-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  margin-right: 25px;
  position: relative;
}

.logo {
  height: 56px;
  width: 56px;
  filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.header-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  color: #ffffff;
}

.header-title h1 .highlight {
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 15px;
  border-radius: 8px;
  display: inline-block;
  border-left: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.header-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

#currentDateTime {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  margin-right: 20px;
}

#currentDateTime i {
  margin-right: 8px;
  font-size: 18px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.weather-info {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.weather-info i {
  margin-right: 8px;
  font-size: 20px;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.weather-info .temp {
  font-weight: 600;
}

.weather-info .location {
  font-size: 14px;
  opacity: 0.9;
  margin-left: 8px;
}

.edit-location-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  position: relative;
  top: 1px;
}

.weather-info:hover .edit-location-btn {
  opacity: 1;
}

.edit-location-btn:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.edit-location-btn:focus {
  outline: none;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-container {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .header-title h1 {
    font-size: 26px;
  }
  
  .header-title h1 .highlight {
    padding: 4px 10px;
  }
  
  .header-info {
    flex-direction: column;
    gap: 10px;
  }
  
  #currentDateTime {
    font-size: 14px;
    margin-right: 0;
  }
  
  .weather-info {
    font-size: 14px;
  }
  
  .edit-location-btn {
    opacity: 0.7;
    margin-left: 8px;
  }
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    color: #212529;
    font-size: 14px;
    position: relative;
    width: 100%;
    border-top: 3px solid #0d6efd;
    margin-top: 50px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-top {
    padding: 25px 0 15px;
    background: linear-gradient(135deg, #0d6efd, #084298);
    background-image: 
        linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(8, 66, 152, 0.95)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    width: 100%;
    position: relative;
    color: #ffffff;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

.footer-info {
    position: relative;
    z-index: 1;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-info p {
    font-size: 13px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background-color: #ffffff;
    color: #0d6efd !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links h4:after {
    content: '';
    position: absolute;
    display: block;
    width: 35px;
    height: 2px;
    background: #ffffff;
    bottom: 0;
    left: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

.footer-links ul li {
    padding: 4px 0;
    transition: all 0.3s ease;
}

.footer-links ul li:first-child {
    padding-top: 0;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 13px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.footer-links ul li a i {
    transition: all 0.3s ease;
    margin-right: 5px;
    font-size: 11px;
}

.footer-links ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links ul li a:hover i {
    transform: rotate(90deg);
}

.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-contact h4:after {
    content: '';
    position: absolute;
    display: block;
    width: 35px;
    height: 2px;
    background: #ffffff;
    bottom: 0;
    left: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-contact p {
    line-height: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-newsletter h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-newsletter .input-group {
    margin-top: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.footer-newsletter .form-control {
    border: none;
    padding: 6px 12px;
    height: auto;
    border-radius: 50px 0 0 50px;
    font-size: 12px;
}

.footer-newsletter .btn {
    border-radius: 0 50px 50px 0;
    padding: 6px 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #0d6efd;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.footer-newsletter .btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Banner Ads */
.footer-ads-container {
    background-color: #000000;
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 8px;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    border-top: 2px solid #0d6efd;
    transition: all 0.3s ease;
    margin: 10px 0 5px;
}

.footer-ads-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.15) 25%, transparent 25%, transparent 50%, rgba(13, 110, 253, 0.15) 50%, rgba(13, 110, 253, 0.15) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.footer-ads-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.footer-ads-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-ads-placeholder i {
    font-size: 20px;
    margin-bottom: 3px;
    display: block;
    color: #0d6efd;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 5px rgba(13, 110, 253, 0.5));
}

.footer-ads-placeholder p {
    font-size: 13px;
    margin-bottom: 2px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.footer-ads-placeholder small {
    font-size: 10px;
    opacity: 0.8;
    color: #0d6efd;
}

.footer-bottom {
    padding: 12px 0;
    background-color: #084298;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 0;
}

.credits {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 0;
}

.credits a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.credits a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.credits .fa-heart {
    color: #ff5e5e !important;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 20px 0 10px;
    }
    
    .footer-info, .footer-links, .footer-contact {
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 8px 0;
    }
    
    .credits {
        text-align: center !important;
        margin-top: 3px;
    }
    
    .footer-ads-container {
        min-height: 70px;
        margin: 8px 0 3px;
    }
}

/* Invoice Template Styles */
.invoice-blue {
    background: #f8f9fa;
}

.invoice-blue .header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.invoice-green {
    background: #f8f9fa;
}

.invoice-green .header {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.invoice-preview img {
    max-width: 100%;
    height: auto;
}

/* How to Use Modal Styles */
#howToUseModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#howToUseModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border-bottom: none;
    padding: 1.25rem;
}

#howToUseModal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

#howToUseModal .modal-title i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

#howToUseModal .modal-body {
    padding: 0;
    background-color: #000;
}

#howToUseModal .modal-footer {
    border-top: none;
    padding: 1rem;
}

#howToUseModal .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border: none;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

#howToUseModal .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Pulse animation for How to Use button */
@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.btn-danger[onclick="openHowToUseModal()"] {
    animation: pulse-danger 2s infinite;
    position: relative;
    overflow: hidden;
}

.btn-danger[onclick="openHowToUseModal()"]:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-danger[onclick="openHowToUseModal()"]:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}
