/* ==========================================================================
   AWESOME CAR RENTAL - COMPLETE ADMIN SYSTEM SETTINGS STYLESHEET
   Location: assets/css/admin/settings.css
   Covers: Main Controller, Sub-Navigation Pills, General Settings, Payment Gateways & Email Branding
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE WRAPPERS
   -------------------------------------------------------------------------- */
.acrb-settings-wrapper,
.acrb-settings-wrapper *,
.acrb-settings-wrapper *::before,
.acrb-settings-wrapper *::after,
.acrb-general-settings,
.acrb-general-settings *,
.acrb-general-settings *::before,
.acrb-general-settings *::after,
.acrb-payments-container,
.acrb-payments-container *,
.acrb-payments-container *::before,
.acrb-payments-container *::after,
.acrb-emails-wrapper,
.acrb-emails-wrapper *,
.acrb-emails-wrapper *::before,
.acrb-emails-wrapper *::after {
  box-sizing: border-box;
}

.acrb-settings-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-settings-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-settings-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-settings-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-settings-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-settings-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-settings-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-settings-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: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   3. SUB-NAVIGATION PILL STRIP
   -------------------------------------------------------------------------- */
.acrb-settings-nav-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.acrb-settings-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-settings-nav-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.15s ease;
}

.acrb-settings-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-settings-nav-item:hover .dashicons {
  color: #0f172a;
}

.acrb-settings-nav-item.is-active {
  background: #eff6ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.acrb-settings-nav-item.is-active .dashicons {
  color: #4f46e5;
}

/* --------------------------------------------------------------------------
   4. CONTENT ELEVATION CARD & FALLBACKS
   -------------------------------------------------------------------------- */
.acrb-settings-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 26px;
}

.acrb-settings-empty-view {
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.acrb-settings-empty-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.acrb-settings-empty-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   5. GENERAL SETTINGS SUBMODULE
   -------------------------------------------------------------------------- */
.acrb-general-settings {
  width: 100%;
}

.acrb-general-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.acrb-general-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.acrb-general-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-general-card-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
  flex-shrink: 0;
}

.acrb-general-card-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.acrb-general-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.acrb-general-card-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.acrb-general-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.acrb-general-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.acrb-general-field:last-child {
  margin-bottom: 0;
}

.acrb-general-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.acrb-general-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.acrb-general-input,
.acrb-general-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-general-input:hover,
.acrb-general-select:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-general-input:focus,
.acrb-general-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-general-select-wrap {
  position: relative;
  width: 100%;
}

.acrb-general-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  cursor: pointer;
}

.acrb-general-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-time-range-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acrb-time-range-sep {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.acrb-general-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-top: 14px;
}

.acrb-general-checkbox-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.acrb-general-checkbox-card input[type="checkbox"] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: #4f46e5;
  cursor: pointer;
  flex-shrink: 0;
}

.acrb-checkbox-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acrb-checkbox-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.acrb-checkbox-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.acrb-general-actions {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.acrb-general-btn-save {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acrb-general-btn-save:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.acrb-general-btn-save .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   6. PAYMENT SETTINGS SUBMODULE
   -------------------------------------------------------------------------- */
.acrb-payments-container {
  width: 100%;
}

.acrb-payments-header {
  margin-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-payments-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.acrb-payments-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-payments-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.acrb-method-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.acrb-method-card:hover {
  border-color: #cbd5e1;
}

.acrb-method-card.is-active {
  border-color: #4f46e5;
  box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.08);
  background: #fafbff;
}

.acrb-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.acrb-method-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-method-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
  flex-shrink: 0;
}

.acrb-method-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.acrb-method-title h4 {
  margin: 0 0 3px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.acrb-method-title p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
}

.acrb-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.acrb-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.acrb-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s ease;
  border-radius: 24px;
}

.acrb-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.acrb-toggle-switch input:checked + .acrb-toggle-slider {
  background-color: #4f46e5;
}

.acrb-toggle-switch input:checked + .acrb-toggle-slider:before {
  transform: translateX(20px);
}

.acrb-method-content {
  margin-top: 18px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.acrb-method-content.is-hidden {
  display: none;
}

.acrb-method-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
  margin-bottom: 6px;
}

.acrb-method-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13px !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 !important;
  line-height: 1.5 !important;
  resize: vertical;
}

.acrb-method-textarea:hover {
  border-color: #94a3b8 !important;
}

.acrb-method-textarea:focus {
  border-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-payments-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.acrb-payments-btn-save {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acrb-payments-btn-save:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.acrb-payments-btn-save .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   7. EMAIL SETTINGS SUBMODULE
   -------------------------------------------------------------------------- */
.acrb-emails-wrapper {
  width: 100%;
}

.acrb-emails-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.acrb-admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 24px;
  margin-bottom: 22px;
}

.acrb-admin-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.acrb-admin-card-header .dashicons {
  color: #4f46e5;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.acrb-admin-card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acrb-admin-field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.acrb-admin-field-group:last-child {
  margin-bottom: 0;
}

.acrb-admin-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.acrb-admin-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.acrb-admin-input,
.acrb-admin-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !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;
}

.acrb-admin-input {
  height: 42px !important;
  line-height: 40px !important;
}

.acrb-admin-textarea {
  height: auto !important;
  padding: 10px 14px !important;
  line-height: 1.5 !important;
  resize: vertical;
}

.acrb-admin-input:hover,
.acrb-admin-textarea:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-admin-input:focus,
.acrb-admin-textarea: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-admin-upload-wrap {
  display: flex;
  gap: 8px;
}

.acrb-admin-btn-upload {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  height: 42px;
}

.acrb-admin-btn-upload:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.acrb-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acrb-color-picker-field {
  width: 44px;
  height: 42px;
  min-width: 44px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.acrb-color-picker-field:hover {
  border-color: #94a3b8;
}

.acrb-color-code-label {
  font-size: 13px;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.acrb-admin-btn-save {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.acrb-admin-btn-save:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.acrb-admin-btn-save .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

.acrb-admin-preview-container {
  position: sticky;
  top: 40px;
}

.acrb-admin-mock-email {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.acrb-admin-mock-header {
  padding: 22px 20px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.acrb-admin-mock-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.acrb-admin-mock-logo-img {
  max-height: 40px;
  object-fit: contain;
}

.acrb-admin-mock-logo-placeholder {
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.acrb-admin-mock-body {
  padding: 20px;
}

.acrb-admin-mock-greeting {
  font-size: 14px;
  color: #0f172a;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.acrb-admin-mock-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.acrb-admin-mock-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
  cursor: default;
  transition: background-color 0.2s ease;
}

.acrb-admin-mock-footer {
  font-size: 11.5px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  line-height: 1.45;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .acrb-settings-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .acrb-general-grid {
    grid-template-columns: 1fr;
  }
  .acrb-general-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .acrb-emails-grid {
    grid-template-columns: 1fr;
  }
  .acrb-admin-preview-container {
    position: static;
  }
}

@media (max-width: 680px) {
  .acrb-method-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .acrb-toggle-switch {
    align-self: flex-end;
  }
}