/* ============================================
   Rush Hour Courier - Custom Styles
   Built on top of Logisco template
   Colors: #FF832F (orange), #072D26 (dark teal), #0C0C0D (black), #FAFAFA (white)
   ============================================ */

/* ---- Flash Messages / Alerts ---- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ---- Status Badges ---- */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-dispatched { background: #cce5ff; color: #004085; }
.status-in_transit { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-delayed { background: #f8d7da; color: #721c24; }
.status-returned { background: #e2e3e5; color: #383d41; }
.status-large {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
}

/* ---- Title Banner (for inner pages) ---- */
.title-banner {
  background: url('/static/assets/media/backgrounds/title-bg.jpg') center/cover no-repeat;
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}
.title-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 45, 38, 0.85);
}
.title-banner .container {
  position: relative;
  z-index: 1;
}
.title-banner h1 {
  color: #FAFAFA;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.title-banner p {
  color: rgba(250,250,250,0.7);
  font-size: 1.1rem;
}
.title-banner-sm {
  padding: 80px 0 40px;
}

/* ---- Hero Section Background ---- */
.hero-sec {
  background: #072D26 !important;
}

/* ---- Tracking Widget (Homepage) ---- */
.tracking-widget-section {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  margin-bottom: 40px;
}
.tracking-widget-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  max-width: 700px;
  margin: 0 auto;
}
.tracking-widget-card h3 {
  color: #072D26;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.tracking-widget-card .input-group {
  display: flex;
  gap: 0;
}
.tracking-widget-card .form-control {
  border-radius: 8px 0 0 8px;
  border: 2px solid #e0e0e0;
  border-right: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.tracking-widget-card .form-control:focus {
  border-color: #FF832F;
  box-shadow: none;
  outline: none;
}
.tracking-widget-card .btn-track {
  background: #FF832F;
  color: #FAFAFA;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}
.tracking-widget-card .btn-track:hover {
  background: #e0701f;
}

/* ---- Service Cards ---- */
.service-block {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.service-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.service-block .icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(255,131,47,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-block .icon-wrap i {
  font-size: 1.75rem;
  color: #FF832F;
}
.service-block h4 {
  color: #072D26;
  margin-bottom: 0.75rem;
}
.service-block p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-block .price-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: rgba(255,131,47,0.1);
  color: #FF832F;
  font-weight: 700;
  border-radius: 50px;
  font-size: 0.95rem;
}
.service-block.featured {
  border: 2px solid #FF832F;
  position: relative;
}
.service-block .badge-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #FF832F;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Why Choose Us Stats ---- */
.stat-block {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-block .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF832F;
  margin-bottom: 0.5rem;
}
.stat-block .stat-label {
  color: #072D26;
  font-weight: 600;
  font-size: 1rem;
}

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #FAFAFA;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.comparison-table thead th {
  background: #072D26;
  color: #FAFAFA;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}
.comparison-table thead th.featured-col {
  background: #FF832F;
}
.comparison-table tbody td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #333;
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #072D26;
}
.comparison-table tbody td.featured-col {
  background: rgba(255,131,47,0.05);
  font-weight: 600;
}

/* ---- Tracking Result / Timeline ---- */
.result-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tracking-label {
  font-size: 0.85rem;
  color: #888;
  display: block;
}
.tracking-number-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #072D26;
  font-family: monospace;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.detail-item i {
  font-size: 1.25rem;
  color: #FF832F;
  margin-top: 2px;
}
.detail-label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.2rem;
}
.detail-value {
  display: block;
  font-weight: 600;
  color: #072D26;
}
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -1.55rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e0e0e0;
}
.timeline-item:first-child .timeline-dot,
.timeline-dot.active {
  background: #FF832F;
  box-shadow: 0 0 0 2px #FF832F;
}
.timeline-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
}
.timeline-notes {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

/* ---- Staff Dashboard Stats Cards ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #072D26;
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}
.stat-card.accent .stat-number {
  color: #FF832F;
}

/* ---- Staff Tables ---- */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  background: #FAFAFA;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.staff-table thead th {
  background: #072D26;
  color: #FAFAFA;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
}
.staff-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #333;
  vertical-align: middle;
}
.staff-table tbody tr:hover {
  background: #f8f9fa;
}
.staff-table .action-link {
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.75rem;
  font-size: 0.85rem;
}
.staff-table .action-link.view { color: #0d6efd; }
.staff-table .action-link.edit { color: #FF832F; }
.staff-table .action-link.print { color: #6f42c1; }
.staff-table .action-link.delete { color: #dc3545; }

/* ---- Filter Buttons ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.filter-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #072D26;
  background: #f0f0f0;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.filter-btn:hover {
  background: #e0e0e0;
  color: #072D26;
}
.filter-btn.active {
  background: #FF832F;
  color: #FAFAFA;
}
.search-inline {
  margin-left: auto;
}
.search-inline input {
  padding: 0.45rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.9rem;
  width: 280px;
  transition: border-color 0.2s;
}
.search-inline input:focus {
  border-color: #FF832F;
  outline: none;
}

/* ---- Form Components (Staff Forms) ---- */
.staff-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}
.staff-card h2 {
  color: #072D26;
  margin-bottom: 1.5rem;
}
.form-section-title {
  color: #072D26;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #FF832F;
  display: inline-block;
}
.form-label-custom {
  font-weight: 600;
  color: #072D26;
  margin-bottom: 0.4rem;
  display: block;
  font-size: 0.9rem;
}
.form-label-custom .required {
  color: #dc3545;
}
.form-control-custom {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
}
.form-control-custom:focus {
  border-color: #FF832F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,131,47,0.1);
}
select.form-control-custom {
  appearance: auto;
}
textarea.form-control-custom {
  min-height: 100px;
  resize: vertical;
}
.form-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}
.tracking-number-preview {
  background: #d4edda;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}
.tracking-number-preview .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #155724;
  font-family: monospace;
}
.tracking-number-preview .label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ---- Buttons ---- */
.btn-rush {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-rush-primary {
  background: #FF832F;
  color: #FAFAFA;
}
.btn-rush-primary:hover {
  background: #e0701f;
  color: #FAFAFA;
}
.btn-rush-secondary {
  background: #072D26;
  color: #FAFAFA;
}
.btn-rush-secondary:hover {
  background: #0a4a3f;
  color: #FAFAFA;
}
.btn-rush-outline {
  background: transparent;
  color: #072D26;
  border: 2px solid #072D26;
}
.btn-rush-outline:hover {
  background: #072D26;
  color: #FAFAFA;
}
.btn-rush-danger {
  background: #dc3545;
  color: #FAFAFA;
}
.btn-rush-danger:hover {
  background: #c82333;
  color: #FAFAFA;
}

/* ---- Login Card ---- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #072D26 0%, #0a4a3f 50%, #072D26 100%);
  padding: 2rem;
}
.login-card {
  background: #FAFAFA;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card h2 {
  color: #072D26;
  text-align: center;
  margin-bottom: 0.5rem;
}
.login-card .subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 2rem;
}
.login-card .form-group {
  margin-bottom: 1.25rem;
}
.login-card .form-group label {
  display: block;
  font-weight: 600;
  color: #072D26;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.login-card .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.login-card .form-group input:focus {
  border-color: #FF832F;
  outline: none;
}
.login-card .btn-login {
  width: 100%;
  padding: 0.85rem;
  background: #FF832F;
  color: #FAFAFA;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.login-card .btn-login:hover {
  background: #e0701f;
}
.login-card .back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #FF832F;
  text-decoration: none;
  font-weight: 600;
}
.login-card .back-link:hover {
  text-decoration: underline;
}

/* ---- Contact Form ---- */
.contact-form .form-control-1 {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.contact-form .form-control-1:focus {
  border-color: #FF832F;
  outline: none;
}
.contact-form select.form-control-1 {
  appearance: auto;
}
.contact-form textarea.form-control-1 {
  min-height: 120px;
  resize: vertical;
}
.contact-info-box {
  background: #072D26;
  border-radius: 12px;
  padding: 2rem;
  color: #FAFAFA;
}
.contact-info-box h4 {
  color: #FF832F;
  margin-bottom: 1.25rem;
}
.contact-info-box .info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-info-box .info-item i {
  color: #FF832F;
  margin-top: 3px;
  font-size: 1.1rem;
}
.contact-info-box .info-item p {
  margin: 0;
  color: rgba(250,250,250,0.85);
  line-height: 1.6;
}
.contact-info-box .info-item strong {
  display: block;
  color: #FAFAFA;
  margin-bottom: 0.2rem;
}
.hours-table {
  width: 100%;
}
.hours-table td {
  padding: 0.4rem 0;
  color: rgba(250,250,250,0.85);
}
.hours-table td:last-child {
  text-align: right;
}

/* ---- Bulk Import ---- */
.file-upload-zone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: #fafafa;
}
.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: #FF832F;
  background: rgba(255,131,47,0.03);
}
.file-upload-zone input[type="file"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-upload-zone i {
  font-size: 3rem;
  color: #FF832F;
  margin-bottom: 1rem;
}
.file-upload-zone .file-name {
  color: #FF832F;
  font-weight: 600;
  margin-top: 1rem;
}

/* ---- Print Label ---- */
.print-controls {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  margin-bottom: 1rem;
}
.print-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border: 2px solid #072D26;
}
.label-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 3px solid #072D26;
  margin-bottom: 1.5rem;
}
.label-header h1 {
  font-size: 1.75rem;
  color: #072D26;
  margin-bottom: 0.25rem;
}
.tracking-box {
  background: #f8f9fa;
  padding: 1.25rem;
  text-align: center;
  border: 3px solid #072D26;
  margin: 1.5rem 0;
}
.tracking-box .number {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 2px;
  color: #072D26;
}
.label-section {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #bdc3c7;
}
.label-section h3 {
  background: #072D26;
  color: #FAFAFA;
  padding: 0.5rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  font-size: 1rem;
}
.label-row {
  margin: 0.5rem 0;
  font-size: 1rem;
}
.label-row .lbl {
  font-weight: 700;
  display: inline-block;
  width: 120px;
}

/* ---- Staff Header ---- */
.staff-header-bar {
  background: #072D26;
  padding: 0;
}
.staff-header-bar .navbar {
  padding: 0.5rem 0;
}
.staff-header-bar .nav-link {
  color: rgba(250,250,250,0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.staff-header-bar .nav-link:hover,
.staff-header-bar .nav-link.active {
  color: #FF832F !important;
}
.staff-header-bar .brand-text {
  color: #FAFAFA;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.staff-header-bar .brand-text span {
  color: #FF832F;
}
.staff-header-bar .user-info {
  color: rgba(250,250,250,0.7);
  font-size: 0.85rem;
}
.staff-header-bar .btn-logout {
  background: #dc3545;
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  margin-left: 0.5rem;
}
.staff-header-bar .btn-logout:hover {
  background: #c82333;
  color: #fff;
}

/* ---- Back Links ---- */
.back-link {
  color: #FF832F;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.back-link:hover {
  text-decoration: underline;
  color: #e0701f;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .title-banner {
    padding: 80px 0 40px;
  }
  .title-banner h1 {
    font-size: 2rem;
  }
  .tracking-widget-card {
    margin: 0 1rem;
  }
  .result-header {
    flex-direction: column;
    text-align: center;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-inline {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
  }
  .search-inline input {
    width: 100%;
  }
}
@media (max-width: 575px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .staff-table {
    font-size: 0.8rem;
  }
  .staff-table thead th,
  .staff-table tbody td {
    padding: 0.6rem 0.5rem;
  }
}

/* ---- Print Styles ---- */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
  .print-area {
    box-shadow: none;
    border: 2px solid #000;
  }
}
