/*
 * Car Maintenance Tracker — Theme
 * ────────────────────────────────
 * Change the variables below to re-skin the entire app.
 */

/* ═══ COLOR TOKENS ═══════════════════════════════════════════ */
:root {
  /* Primary palette – light blue */
  --accent:        #2E86DE;
  --accent-hover:  #1B6EC2;
  --accent-soft:   #E8F2FC;
  --accent-muted:  #B4D4F0;

  /* Surfaces */
  --bg:            #F4F7FB;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #1C2D41;
  --bg-sidebar-hv: #263B54;
  --bg-input:      #F0F4F8;

  /* Text */
  --text:          #1A2B3D;
  --text-secondary:#5A6F85;
  --text-muted:    #94A3B8;
  --text-sidebar:  #CBD5E1;
  --text-on-accent:#FFFFFF;

  /* Feedback */
  --success:       #27AE60;
  --success-bg:    #EAFAF1;
  --error:         #E74C3C;
  --error-bg:      #FDEDEC;
  --warning:       #F39C12;
  --warning-bg:    #FEF5E7;

  /* Borders & shadows */
  --border:        #E2E8F0;
  --border-focus:  var(--accent);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 30px rgba(0,0,0,.10);

  /* Radii */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  /* Sidebar width */
  --sidebar-w:     64px;

  /* Typography */
  --font:          'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;
}


/* ═══ RESET & BASE ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}


/* ═══ SIDEBAR ════════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  z-index: 100;
}

.sidebar-top, .sidebar-bottom {
  display: flex; flex-direction: column;
  align-items: center; gap: .6rem;
}

.sidebar-logo {
  color: var(--accent);
  margin-bottom: .8rem;
  text-decoration: none;
  transition: opacity .2s;
}
.sidebar-logo:hover { opacity: .8; }

.sidebar-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: .15rem;
  color: var(--text-sidebar);
  text-decoration: none;
  padding: .55rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  border: none; background: none; cursor: pointer;
  font-size: .6rem;
}
.sidebar-btn:hover {
  background: var(--bg-sidebar-hv);
  color: #fff;
}
.sidebar-label { font-size: .55rem; opacity: .7; letter-spacing: .03em; }

.sidebar-avatar .avatar-img {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover;
}


/* ═══ MAIN CONTENT ═══════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 2rem 2.5rem;
  max-width: 1200px;
}


/* ═══ FLASH MESSAGES ═════════════════════════════════════════ */
.flash-container { margin-bottom: 1.5rem; }
.flash {
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; justify-content: space-between;
  align-items: center; margin-bottom: .5rem;
  animation: slideIn .25s ease-out;
}
.flash-success { background: var(--success-bg); color: #1a7d44; }
.flash-error   { background: var(--error-bg);   color: #c0392b; }
.flash-close {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; opacity: .5; line-height: 1;
}
.flash-close:hover { opacity: 1; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══ PAGE HEADER ════════════════════════════════════════════ */
.page-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1.8rem;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }


/* ═══ BUTTONS ════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent); color: var(--text-on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-danger {
  background: var(--error); color: #fff;
}
.btn-danger:hover { background: #c0392b; }
.btn-outline.btn-danger {
  background: transparent; color: var(--error);
  border: 1.5px solid var(--error);
}
.btn-outline.btn-danger:hover { background: var(--error-bg); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-xs { padding: .25rem .55rem; font-size: .75rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-btn-danger:hover { border-color: var(--error); color: var(--error); background: var(--error-bg); }


/* ═══ FORMS ══════════════════════════════════════════════════ */
.form-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.form-card.compact { padding: 1.4rem; }
.form-card h1 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.form-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.form-group {
  display: flex; flex-direction: column; gap: .3rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], input[type="file"],
textarea, select {
  padding: .6rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem;
  background: var(--bg-input); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-disabled { opacity: .6; cursor: not-allowed; }
.input-xs { padding: .25rem .5rem; font-size: .78rem; width: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.form-actions {
  display: flex; gap: .8rem; align-items: center;
  margin-top: .5rem; flex-wrap: wrap;
}
.form-hint { font-size: .75rem; color: var(--text-muted); }

.checkbox-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .88rem; cursor: pointer;
}

.inline-form { display: inline-flex; align-items: center; gap: .4rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}


/* ═══ CAR GRID ═══════════════════════════════════════════════ */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s;
}
.car-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.car-card-img {
  height: 160px; overflow: hidden;
  background: var(--accent-soft);
}
.car-card-img img { width: 100%; height: 100%; object-fit: cover; }
.car-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; background: var(--accent-soft);
}

.car-card-body { padding: 1rem 1.2rem; }
.car-card-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .15rem; }
.car-year { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.car-meta { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }


/* ═══ TAGS ═══════════════════════════════════════════════════ */
.tag {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 100px; font-size: .72rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  letter-spacing: .02em;
}
.tag-dim { background: var(--bg-input); color: var(--text-muted); }
.tag-accent { background: var(--accent); color: var(--text-on-accent); }

/* Status tags for maintenance records */
.status-tag {
  display: inline-block; padding: .1rem .5rem;
  border-radius: 100px; font-size: .68rem; font-weight: 700;
  letter-spacing: .03em; white-space: nowrap;
  vertical-align: middle;
}
.status-expired  { background: #FDEDEC; color: #C0392B; border: 1px solid #E74C3C; }
.status-renewed  { background: #EAFAF1; color: #1A7D44; border: 1px solid #27AE60; }
.status-notified { background: #E8F2FC; color: #1B6EC2; border: 1px solid #2E86DE; }
.status-disabled { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }
.status-custom   { background: #FEF5E7; color: #B7791F; border: 1px solid #F39C12; }

/* Expired maintenance item highlight */
.maint-expired { border-left: 3px solid var(--error); }

/* Form section label */
.form-section-label {
  font-size: .82rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 1.2rem 0 .6rem; padding-top: .8rem;
  border-top: 1px solid var(--border);
}

.checkbox-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}


/* ═══ DETAIL PAGE ════════════════════════════════════════════ */
.back-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--text-muted); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  margin-bottom: 1.2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.detail-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 2rem;
}

.detail-top {
  display: flex; gap: 2rem; padding: 1.8rem;
}

.detail-img {
  width: 240px; min-height: 170px;
  border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
  background: var(--accent-soft);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { flex: 1; }
.detail-title-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  margin-bottom: .5rem;
}
.detail-title-row h1 { font-size: 1.5rem; }

.detail-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.detail-desc {
  color: var(--text-secondary);
  font-size: .92rem; margin-bottom: 1rem;
  line-height: 1.5;
}

.detail-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 1.05rem; font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: .88rem; }


/* ═══ GALLERY ════════════════════════════════════════════════ */
.gallery-section {
  padding: 1.4rem 1.8rem;
  border-top: 1px solid var(--border);
}
.gallery-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
}
.gallery-header h3 { font-size: 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .8rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; cursor: pointer;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-delete {
  position: absolute; top: 4px; right: 4px;
}
.gallery-delete button {
  width: 24px; height: 24px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 1rem; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-delete button { opacity: 1; }


/* ═══ LIGHTBOX ═══════════════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); z-index: 1000;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 90%; max-height: 90%;
  border-radius: var(--radius);
}


/* ═══ MAINTENANCE LIST ═══════════════════════════════════════ */
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
}
.section-header h2 { font-size: 1.2rem; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }

.maint-list { display: flex; flex-direction: column; gap: .5rem; }

.maint-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.maint-item:hover { box-shadow: var(--shadow-sm); }

.maint-header {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: .8rem 1.2rem;
  cursor: pointer; user-select: none;
  transition: background .15s;
}
.maint-header:hover { background: var(--bg-input); }

.maint-summary {
  display: flex; align-items: center; gap: .6rem;
}
.maint-chevron {
  transition: transform .25s;
  flex-shrink: 0;
}
.maint-item.open .maint-chevron { transform: rotate(180deg); }
.maint-desc { font-weight: 600; font-size: .95rem; }
.maint-date { font-size: .82rem; color: var(--text-muted); white-space: nowrap; }

.maint-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.2rem;
}
.maint-item.open .maint-body {
  max-height: 600px;
  padding: .8rem 1.2rem 1.2rem;
  border-top: 1px solid var(--border);
}

.maint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.5rem;
}
.maint-field { display: flex; flex-direction: column; }
.mf-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.mf-value { font-size: .9rem; }

.maint-actions {
  display: flex; gap: .6rem;
  margin-top: 1rem; padding-top: .8rem;
  border-top: 1px solid var(--border);
}


/* ═══ DATA TABLE ═════════════════════════════════════════════ */
.table-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem; margin-bottom: 1.5rem;
}
.table-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem;
}
.data-table th {
  text-align: left; padding: .6rem .8rem;
  font-weight: 600; color: var(--text-muted);
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--bg-input); }
.actions-cell {
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap;
}
.edit-row td { background: var(--accent-soft); }


/* ═══ PROFILE ════════════════════════════════════════════════ */
.profile-layout { max-width: 700px; }
.profile-avatar-section {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 1.5rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent-soft);
}
.profile-avatar-lg.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}


/* ═══ SEARCH BAR ═════════════════════════════════════════════ */
.search-bar {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 100px; padding: .4rem .6rem .4rem 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1; border: none; background: transparent;
  font-size: .95rem; padding: .4rem 0;
}
.search-bar input:focus { outline: none; box-shadow: none; }


/* ═══ EMPTY STATES ═══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 4rem 2rem;
}
.empty-state svg { margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

.empty-state-sm {
  text-align: center; padding: 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}


/* ═══ LOGIN ══════════════════════════════════════════════════ */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
}
.login-card {
  background: var(--bg-card); padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 380px;
  text-align: center;
  border: 1px solid var(--border);
}
.login-icon { margin-bottom: 1rem; }
.login-card h1 { font-size: 1.4rem; margin-bottom: .25rem; }
.login-sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.8rem; }
.login-card .form-group { text-align: left; }
.login-card .btn { margin-top: .5rem; }


/* ═══ UTILITY ════════════════════════════════════════════════ */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.current-img { margin-bottom: .5rem; }


/* ═══ FILTER BAR ═════════════════════════════════════════════ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.filter-form {
  display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap;
}
.filter-group {
  display: flex; flex-direction: column; gap: .2rem;
}
.filter-group label {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.filter-group select, .filter-group input {
  padding: .4rem .6rem; font-size: .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-input); font-family: var(--font);
  min-width: 120px;
}
.filter-actions { display: flex; gap: .4rem; align-items: flex-end; }


/* ═══ PAGINATION ═════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .8rem; margin-top: 1.2rem; padding: .8rem 0;
}
.page-info {
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}


/* ═══ SHARING SECTION ════════════════════════════════════════ */
.share-section {
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--border);
}
.share-header h3 { font-size: 1rem; margin-bottom: .8rem; }
.share-form {
  display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem;
}
.share-form input {
  padding: .45rem .7rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font);
  font-size: .88rem; width: 220px; background: var(--bg-input);
}
.share-list { display: flex; flex-direction: column; gap: .4rem; }
.share-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem .6rem; border-radius: var(--radius-sm);
  background: var(--bg-input); font-size: .88rem;
}


/* ═══ CARD BADGE ═════════════════════════════════════════════ */
.card-badge {
  position: absolute; top: 8px; right: 8px;
  padding: .15rem .55rem; border-radius: 100px;
  font-size: .68rem; font-weight: 700;
  background: rgba(28,45,65,.75); color: #fff;
  backdrop-filter: blur(4px);
}
.car-card-img { position: relative; }


/* ═══ MODAL ══════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 200;
  align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  width: 100%; max-width: 380px; overflow: hidden;
  animation: modalIn .2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; }
.modal-close {
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-body { padding: 1rem 1.2rem; }
.modal-option {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 1rem; border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  font-weight: 500; font-size: .95rem;
  border: 1.5px solid var(--border); margin-bottom: .5rem;
  cursor: pointer; background: none;
  font-family: var(--font); text-align: left; width: 100%;
  transition: border-color .2s, background .2s;
}
.modal-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.vehicle-pick-list { max-height: 300px; overflow-y: auto; }
.vehicle-pick-list .modal-option { font-size: .88rem; padding: .6rem .8rem; }

/* ═══ MAINTENANCE RECORD PHOTOS (in accordion) ══════════════ */
.maint-record-photos {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: .8rem; padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.maint-record-photos img {
  width: 100px; height: 70px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.maint-record-photos img:hover {
  transform: scale(1.05); box-shadow: var(--shadow-md);
}


/* ═══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-top { flex-direction: column; }
  .detail-img { width: 100%; height: 200px; }
  .form-row-3, .form-row-4 { grid-template-columns: 1fr 1fr; }
  .maint-grid { grid-template-columns: 1fr; }
  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-group select, .filter-group input { width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .main-content { padding: 1.2rem; }
  .car-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
  .detail-top { padding: 1.2rem; }
  .detail-stats { gap: 1rem; }
  .detail-actions { flex-wrap: wrap; }
}
