body {
  padding-top: 70px;
}

#result {
  min-height: 400px;
}

.navbar-brand {
  font-weight: bold;
  color: #007bff !important;
}

/* Dashboard Tiles */
.dashboard-tile {
  transition: all 0.25s ease;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dashboard-tile:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.dashboard-tile .card-header {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.875rem 1.25rem;
}

.dashboard-tile .card-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.01em;
}

/* Accent borders for tile types */
.dashboard-tile.tile-accent-blue { border-top: 3px solid #3b82f6; }
.dashboard-tile.tile-accent-green { border-top: 3px solid #10b981; }
.dashboard-tile.tile-accent-orange { border-top: 3px solid #f59e0b; }
.dashboard-tile.tile-accent-purple { border-top: 3px solid #8b5cf6; }
.dashboard-tile.tile-accent-rose { border-top: 3px solid #f43f5e; }
.dashboard-tile.tile-accent-teal { border-top: 3px solid #14b8a6; }

/* Customer welcome banner */
.customer-welcome {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 50%, #1e3a5f 100%);
  border-radius: 0.75rem;
  color: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.customer-welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.customer-welcome::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.customer-welcome h4 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.customer-welcome .welcome-subtitle {
  opacity: 0.75;
  font-size: 0.9rem;
}

.customer-welcome-link .customer-welcome {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.customer-welcome-link:hover .customer-welcome {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.5);
}
.customer-welcome-link:hover .bi-arrow-right-circle {
  color: rgba(255,255,255,1) !important;
}

/* Agent dashboard panel wrapper */
.agent-dashboard-panel {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  border-left: 4px solid #3498db;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Brand toggle pills (reused from customer-requests) */
.brand-toggle { cursor: pointer; font-size: 12px; padding: 4px 10px; border-radius: 6px; display: inline-block; margin: 2px 4px 2px 0; opacity: 0.4; transition: opacity 0.15s; user-select: none; }
.brand-toggle.active { opacity: 1; }
.brand-toggle:hover { opacity: 0.85; }

/* Brand filter sub-header strip below welcome banner */
.customer-brand-subheader {
  background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 100%);
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Customer dashboard panel wrapper */
.customer-dashboard-panel {
  background: linear-gradient(135deg, #f0f8f4 0%, #e8f5ee 100%);
  border-left: 4px solid #27ae60;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Agent welcome banner */
.agent-welcome {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  border-radius: 0.75rem;
  color: #fff;
  padding: 1.5rem 2rem;
  position: relative;
}
.agent-welcome::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.agent-welcome h4 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
#agent-selector option {
  color: #333;
  background: #fff;
}

/* KPI stat cards */
.kpi-card {
  background: #fff;
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-card .kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi-card .kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 0.25rem;
}

.kpi-card .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Better table styling in tiles */
.dashboard-tile .table {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.dashboard-tile .table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.625rem 0.75rem;
  white-space: nowrap;
}

.dashboard-tile .table tbody td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border-color: #f1f5f9;
}

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

.order-detail-link, .invoice-detail-link {
  color: #1e3a5f;
  cursor: pointer;
  transition: color 0.15s;
}
.order-detail-link:hover, .invoice-detail-link:hover {
  color: #0d6efd;
  text-decoration: underline !important;
}

/* DataTables styling overrides */
.dataTables_wrapper .dt-input,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper select.dt-input {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  background: #fff;
  color: #334155;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.dataTables_wrapper .dt-input:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.dataTables_wrapper .dataTables_filter input::placeholder {
  color: #94a3b8;
}
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.dataTables_wrapper .dataTables_info {
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 0.75rem;
}
.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.75rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #dee2e6 !important;
  border-radius: 6px !important;
  padding: 0.3rem 0.7rem !important;
  margin: 0 2px !important;
  font-size: 0.8rem !important;
  color: #475569 !important;
  background: #fff !important;
  transition: all 0.15s !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #1e293b !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4 !important;
  cursor: default !important;
}

/* Banner Preview */
.banner-preview {
  min-height: 150px;
}

.banner-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.banner-date {
  text-transform: capitalize;
}

.banner-loading {
  color: #6c757d;
}

.no-banner svg {
  color: #dee2e6;
}

/* Tab styling for dashboard */
#bannerTabs .nav-link {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

#bannerTabs .nav-link.active {
  font-weight: 500;
}

/* Settings button */
.btn-settings {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.btn-settings svg {
  vertical-align: middle;
}

/* Open Orders Tile */
.open-orders-total {
  padding: 1rem 0;
}

.open-orders-total .display-5 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

