/* ==========================================================================
   AWESOME CAR RENTAL - COMPLETE ADMIN CATEGORIES STYLESHEET
   Location: assets/css/admin/admin-categories.css
   Covers: Main Controller, Sub-Navigation Pills, List Table, Profile Dossier & Add/Edit Form
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE WRAPPERS
   -------------------------------------------------------------------------- */
.acrb-cat-wrapper,
.acrb-cat-wrapper *,
.acrb-cat-wrapper *::before,
.acrb-cat-wrapper *::after,
.acrb-nav-wrapper,
.acrb-nav-wrapper *,
.acrb-nav-wrapper *::before,
.acrb-nav-wrapper *::after,
.acrb-table-wrap,
.acrb-table-wrap *,
.acrb-table-wrap *::before,
.acrb-table-wrap *::after,
.acrb-cat-view-grid,
.acrb-cat-view-grid *,
.acrb-cat-view-grid *::before,
.acrb-cat-view-grid *::after,
.acrb-cat-card,
.acrb-cat-card *,
.acrb-cat-card *::before,
.acrb-cat-card *::after {
  box-sizing: border-box;
}

.acrb-cat-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
   -------------------------------------------------------------------------- */
.acrb-cat-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-cat-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-cat-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-cat-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-cat-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-cat-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   3. SUB-NAVIGATION PILL STRIP
   -------------------------------------------------------------------------- */
.acrb-nav-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.acrb-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-nav-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.15s ease;
}

.acrb-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-nav-item:hover .dashicons {
  color: #0f172a;
}

.acrb-nav-item.is-active {
  background: #eff6ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.acrb-nav-item.is-active .dashicons {
  color: #4f46e5;
}

.acrb-nav-label {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. VEHICLE CATEGORIES 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-cat-table {
  width: 100% !important;
  border-collapse: collapse;
}

.acrb-cat-table th,
.acrb-cat-table td {
  vertical-align: middle;
  padding: 12px 16px;
}

.acrb-cat-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0;
}

.acrb-cat-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 13px;
}

.acrb-cat-table tbody tr:hover {
  background-color: #fcfdfe;
}

.acrb-cat-th-icon {
  width: 60px;
}

.acrb-cat-th-actions {
  text-align: right !important;
  width: 130px;
}

.acrb-cat-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  display: block;
}

.acrb-cat-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.acrb-cat-thumb-placeholder .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-cat-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.acrb-cat-slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
}

.acrb-cat-badge {
  display: inline-block;
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #dbeafe;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
}

.acrb-cat-cell-actions {
  text-align: right !important;
}

.acrb-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: 6px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.acrb-table-wrap .acrb-btn-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-table-wrap .acrb-btn-action .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.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-cat-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. VEHICLE CATEGORY PROFILE DOSSIER & OVERVIEW
   -------------------------------------------------------------------------- */
.acrb-cat-view-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.acrb-cat-view-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.acrb-cat-dossier {
  text-align: center;
}

.acrb-cat-avatar-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #e0e7ff;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrb-cat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acrb-cat-avatar-icon {
  font-size: 34px;
  width: 34px;
  height: 34px;
  color: #4f46e5;
}

.acrb-cat-view-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.acrb-cat-view-slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.acrb-cat-meta-list {
  margin-top: 20px;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.acrb-cat-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.acrb-cat-meta-label {
  color: #64748b;
  font-weight: 500;
}

.acrb-cat-meta-value {
  color: #0f172a;
  font-weight: 700;
}

.acrb-cat-fleet-badge {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
}

.acrb-cat-view-actions {
  margin-top: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acrb-cat-btn-edit {
  background: #4f46e5;
  color: #ffffff !important;
  border: none;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease;
}

.acrb-cat-btn-edit:hover {
  background: #4338ca;
  color: #ffffff !important;
}

.acrb-cat-btn-edit .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.acrb-cat-btn-back {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
}

.acrb-cat-btn-back:hover {
  color: #0f172a !important;
}

.acrb-cat-overview-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.acrb-cat-desc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.acrb-cat-desc-heading {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acrb-cat-desc-text {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

.acrb-view-notfound {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acrb-view-btn-back {
  color: #991b1b !important;
  text-decoration: underline !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. VEHICLE CATEGORY ADD / EDIT FORM CARD
   -------------------------------------------------------------------------- */
.acrb-cat-card {
  max-width: 680px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.acrb-cat-header-title {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-cat-form-group {
  margin-bottom: 20px;
}

.acrb-cat-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.acrb-cat-input,
.acrb-cat-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  box-sizing: border-box !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-cat-input {
  height: 42px !important;
  line-height: 20px !important;
}

.acrb-cat-textarea {
  line-height: 1.5 !important;
  resize: vertical;
}

.acrb-cat-input:hover,
.acrb-cat-textarea:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-cat-input:focus,
.acrb-cat-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-media-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.acrb-media-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  object-fit: contain;
}

.acrb-media-placeholder {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.acrb-media-btn-group {
  display: flex;
  gap: 8px;
}

.acrb-btn-media {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.acrb-btn-media:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.acrb-btn-remove-media {
  background: transparent;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.acrb-btn-remove-media:hover {
  background: #fee2e2;
}

.acrb-cat-btn-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.acrb-cat-btn-submit {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  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-cat-btn-submit:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.acrb-cat-btn-cancel {
  color: #64748b;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
}

.acrb-cat-btn-cancel:hover {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .acrb-cat-view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .acrb-cat-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
}