/* ==========================================================================
   AWESOME CAR RENTAL - COMPLETE ADMIN PROMO CODES STYLESHEET
   Location: assets/css/admin/admin-promos.css
   Covers: Main Controller, Sub-Navigation Pills, List Table View & Add/Edit Form Card
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE WRAPPERS
   -------------------------------------------------------------------------- */
.acrb-promos-wrapper,
.acrb-promos-wrapper *,
.acrb-promos-wrapper *::before,
.acrb-promos-wrapper *::after,
.acrb-table-wrap,
.acrb-table-wrap *,
.acrb-table-wrap *::before,
.acrb-table-wrap *::after,
.acrb-promos-card,
.acrb-promos-card *,
.acrb-promos-card *::before,
.acrb-promos-card *::after {
  box-sizing: border-box;
}

.acrb-promos-wrapper {
  width: 100%;
  max-width: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   2. TOPBAR HEADER BANNER & ALERTS
   -------------------------------------------------------------------------- */
.acrb-promos-topbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-promos-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-promos-topbar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
  flex-shrink: 0;
}

.acrb-promos-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-promos-topbar-meta h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acrb-promos-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-promos-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.acrb-promos-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   3. SUB-NAVIGATION PILL STRIP
   -------------------------------------------------------------------------- */
.acrb-promos-nav-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.acrb-promos-nav-item {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.acrb-promos-nav-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.15s ease;
}

.acrb-promos-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-promos-nav-item:hover .dashicons {
  color: #0f172a;
}

.acrb-promos-nav-item.is-active {
  background: #eff6ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.acrb-promos-nav-item.is-active .dashicons {
  color: #4f46e5;
}

/* --------------------------------------------------------------------------
   4. PROMO CODES DATATABLE LIST VIEW
   -------------------------------------------------------------------------- */
.acrb-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.acrb-promos-table {
  width: 100% !important;
  border-collapse: collapse;
}

.acrb-promos-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.acrb-promos-table tbody td {
  vertical-align: middle;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 13px;
}

.acrb-promos-table tbody tr:hover {
  background-color: #fcfdfe;
}

.acrb-promo-tag-code {
  background: #f1f5f9;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  display: inline-block;
}

.acrb-promo-discount-text {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
}

.acrb-promo-subtext {
  color: #64748b;
  font-size: 12.5px;
}

.acrb-promo-date-text {
  color: #475569;
  font-weight: 500;
}

.acrb-promo-expired-text {
  color: #dc2626;
  font-weight: 700;
}

.acrb-promo-status-badge {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  white-space: nowrap;
}

.acrb-promo-status-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.acrb-promo-status-disabled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.acrb-promos-th-actions {
  text-align: right !important;
  width: 110px;
}

.acrb-promos-cell-actions {
  text-align: right !important;
}

.acrb-promos-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.acrb-table-wrap .acrb-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.acrb-table-wrap .acrb-btn-action:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.acrb-table-wrap .acrb-btn-action .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.acrb-table-wrap .acrb-btn-delete {
  color: #dc2626 !important;
  border-color: #fee2e2 !important;
  background: #fff5f5 !important;
}

.acrb-table-wrap .acrb-btn-delete:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

.acrb-promos-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. CREATE / EDIT PROMO CODE FORM CARD
   -------------------------------------------------------------------------- */
.acrb-promos-card {
  max-width: 860px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  color: #1e293b;
  margin-top: 10px;
}

.acrb-promos-header-title {
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-promos-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.acrb-promos-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.acrb-promos-form-group {
  display: flex;
  flex-direction: column;
}

.acrb-promos-form-group-single {
  max-width: 420px;
  margin-bottom: 18px;
}

.acrb-promos-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.acrb-promos-input,
.acrb-promos-select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  line-height: 40px !important;
}

.acrb-promos-input-code {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.acrb-promos-input:hover,
.acrb-promos-select:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-promos-input:focus,
.acrb-promos-select:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-promos-select-wrap {
  position: relative;
  width: 100%;
}

.acrb-promos-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  cursor: pointer;
}

.acrb-promos-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-promos-btn-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.acrb-promos-btn-submit {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.acrb-promos-btn-submit:hover {
  background: #4338ca;
  color: #ffffff;
  transform: translateY(-1px);
}

.acrb-promos-btn-submit .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

.acrb-promos-btn-cancel {
  color: #64748b;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.acrb-promos-btn-cancel:hover {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 782px) {
  .acrb-promos-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .acrb-promos-grid-2,
  .acrb-promos-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .acrb-promos-form-group-single {
    max-width: 100%;
  }
}