


/* Admin CSS */

/* -----------------------------------------------
   DASHBOARD LAYOUT
----------------------------------------------- */

.dashboard_wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f5f7;
  margin-top: 10vh;
}

/* SIDEBAR */
.dashboard_sidebar {
  width: 240px;
  background: #1a3332;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 10vh;
  left: 0;
  height: calc(100vh - 10vh);
  transition: width 0.3s ease;
  overflow: hidden;
  z-index: 99;
}

.dashboard_sidebar.collapsed {
  width: 64px;
}

.dashboard_sidebar.collapsed .dashboard_sidebar_logo {
  display: none;
}

.dashboard_sidebar.collapsed .dashboard_nav_item,
.dashboard_sidebar.collapsed .dashboard_logout {
  justify-content: center;
  padding: 12px 0;
}

.dashboard_sidebar.collapsed .dashboard_nav_item i,
.dashboard_sidebar.collapsed .dashboard_logout i {
  font-size: 1.25rem;
}

.dashboard_sidebar.collapsed .dashboard_nav_label,
.dashboard_sidebar.collapsed .dashboard_logout_label {
  display: none;
}

.dashboard_collapse_btn {
  position: fixed;
  top: 50vh;
  left: 224px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #1a3332;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  font-size: 0.75rem;
  transition: left 0.3s ease, background 0.2s ease;
}

.dashboard_collapse_btn:hover {
  background: #2b5554;
  border-color: #2b5554;
  color: white;
}

.dashboard_collapse_btn.collapsed {
  left: 48px;
}

.dashboard_wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f5f7;
  margin-top: 10vh;
  position: relative;
}

.dashboard_sidebar_logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.dashboard_sidebar_logo img {
  width: 120px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.dashboard_nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  flex: 1;
}

.dashboard_nav_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard_nav_item:hover,
.dashboard_nav_item.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.dashboard_nav_item i {
  font-size: 1.1rem;
}

.dashboard_sidebar_bottom {
  padding: 16px 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.dashboard_logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard_logout:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}

/* MAIN */
.dashboard_main {
  flex: 1;
  padding: 32px 36px;
  overflow-x: auto;
  margin-left: 240px;
  transition: margin-left 0.3s ease;
}

.dashboard_wrapper.sidebar-collapsed .dashboard_main {
  margin-left: 64px;
}

/* TOP BAR */
.dashboard_topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard_title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

.dashboard_add_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2b5554;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dashboard_add_btn:hover {
  background: #1e3d3c;
  color: white;
}

/* STATS */
.dashboard_stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard_stat_card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 4px solid #2b5554;
}

.dashboard_stat_card--active {
  border-left-color: #22c55e;
}

.dashboard_stat_card--inactive {
  border-left-color: #ef4444;
}

.dashboard_stat_icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0efed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2b5554;
  flex-shrink: 0;
}

.dashboard_stat_card--active .dashboard_stat_icon {
  background: #dcfce7;
  color: #16a34a;
}

.dashboard_stat_card--inactive .dashboard_stat_icon {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard_stat_info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard_stat_label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
}

.dashboard_stat_value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

/* TOOLBAR */
.dashboard_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard_filters {
  display: flex;
  gap: 8px;
}

.dashboard_filter_btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  background: white;
  color: #555;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dashboard_filter_btn:hover {
  border-color: #2b5554;
  color: #2b5554;
}

.dashboard_filter_btn--active {
  background: #2b5554;
  border-color: #2b5554;
  color: white !important;
}

.dashboard_filter_btn--green.dashboard_filter_btn--active {
  background: #16a34a;
  border-color: #16a34a;
}

.dashboard_filter_btn--red.dashboard_filter_btn--active {
  background: #dc2626;
  border-color: #dc2626;
}

.dashboard_search {
  padding: 9px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  width: 280px;
  outline: none;
  background: white;
  transition: border-color 0.2s ease;
}

.dashboard_search:focus {
  border-color: #2b5554;
}

/* TABLE CARD */
.dashboard_table_card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.dashboard_table_header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.dashboard_table_header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.dashboard_table_scroll {
  overflow-x: auto;
}

.dashboard_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.dashboard_table thead tr {
  background: #fafafa;
}

.dashboard_table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.dashboard_table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f7f7f7;
  vertical-align: middle;
  color: #333;
}

.dashboard_table tbody tr:hover {
  background: #fafafa;
}

.dashboard_table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard_table_img {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.dashboard_car_name {
  display: block;
  font-weight: 500;
  color: #111;
}

.dashboard_car_year {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
}

.dashboard_td_muted {
  color: #aaa;
  font-size: 0.82rem;
}

.dashboard_price {
  font-weight: 600;
  color: #2b5554;
  white-space: nowrap;
}

/* BADGES */
.dashboard_badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.dashboard_badge--active {
  background: #dcfce7;
  color: #15803d;
}

.dashboard_badge--inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.dashboard_badge--top {
  background: #fef3c7;
  color: #b45309;
}

/* ACTION BUTTONS */
.dashboard_actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard_action_btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  background: #f4f5f7;
  color: #555;
}

.dashboard_action_btn--view:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard_action_btn--edit:hover {
  background: #dcfce7;
  color: #15803d;
}

.dashboard_action_btn--delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}


/* -----------------------------------------------
   DASHBOARD MOBILE
----------------------------------------------- */

@media only screen and (max-width: 768px) {

  .dashboard_wrapper {
    margin-top: 10vh;
  }

  .dashboard_sidebar {
    width: 240px;
    transform: translateX(-240px);
    transition: transform 0.3s ease;
  }

  .dashboard_sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard_sidebar.collapsed {
    width: 240px;
    transform: translateX(-240px);
  }

  .dashboard_main {
    margin-left: 0 !important;
    padding: 20px 16px;
    width: 100%;
  }

  .dashboard_collapse_btn {
    left: 8px;
    top: calc(10vh + 16px);
    transform: none;
    position: fixed;
  }

  .dashboard_collapse_btn.mobile-open {
    left: 248px;
  }

  .dashboard_stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard_toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard_search {
    width: 100%;
  }

  .dashboard_topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard_table th,
  .dashboard_table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .dashboard_sidebar_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
  }

  .dashboard_sidebar_overlay.active {
    display: block;
  }

}

/* ---------------------------------------------- */

.add_car_btn_onscreen a{

  position: fixed;
  left: 20px;
  bottom: 20px;
  padding: 10px 20px;
  font-size: .5rem;
  opacity: .3;
  text-transform: uppercase;

}


.add_car_btn_onscreen a:hover{
  transition: all .4s ease;
  opacity: .85;
}


/* -----------------------------------------------
   DASHBOARD FORM (create.blade / edit.blade)
----------------------------------------------- */

.dform_subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.dform_back_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dform_back_btn:hover {
  border-color: #2b5554;
  color: #2b5554;
}

/* SECTIONS */
.dform_section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.dform_section_header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a3332;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.dform_section_header i {
  font-size: 1.1rem;
  color: #2b5554;
}

/* GRID */
.dform_grid {
  display: grid;
  gap: 16px;
}

.dform_grid--2 { grid-template-columns: repeat(2, 1fr); }
.dform_grid--3 { grid-template-columns: repeat(3, 1fr); }

/* FIELD */
.dform_field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dform_label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.dform_required {
  color: #ef4444;
}

.dform_hint {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 2px;
}

.dform_input,
.dform_select,
.dform_textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.dform_input:focus,
.dform_select:focus,
.dform_textarea:focus {
  border-color: #2b5554;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43,85,84,0.08);
}

.dform_textarea {
  resize: vertical;
  min-height: 100px;
}

.dform_error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 2px;
}

/* RADIO */
.dform_radio_group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dform_radio_label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dform_radio_label input[type="radio"] {
  display: none;
}

.dform_radio_badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  background: #f4f5f7;
  color: #888;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dform_radio_label input[type="radio"]:checked + .dform_radio_badge {
  border-color: transparent;
}

.dform_radio_label input[type="radio"]:checked + .dform_radio_badge--active {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.dform_radio_label input[type="radio"]:checked + .dform_radio_badge--inactive {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* CHECKBOX */
.dform_checkbox_label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #444;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.15s ease;
  user-select: none;
  width: 100%;
}

.dform_checkbox_label:hover {
  border-color: #2b5554;
  background: #f0f9f8;
}

.dform_checkbox {
  width: 16px;
  height: 16px;
  accent-color: #2b5554;
  flex-shrink: 0;
}

/* FILE INPUT */
.dform_file_wrapper {
  padding: 14px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s ease;
}

.dform_file_wrapper:hover {
  border-color: #2b5554;
}

.dform_file {
  width: 100%;
  font-size: 0.84rem;
  color: #555;
}

/* SUBMIT ROW */
.dform_submit_row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 8px 0 32px;
}

.dform_cancel_btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dform_cancel_btn:hover {
  border-color: #9ca3af;
  color: #333;
}

.dform_submit_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 8px;
  background: #2b5554;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dform_submit_btn:hover {
  background: #1a3332;
}

/* IMAGES GRID (edit page) */
.dform_img_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dform_img_item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dform_img_label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
}

.dform_img_preview {
  position: relative;
  display: inline-block;
}

.dform_img_preview img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid #e0e0e0;
}

.dform_img_delete_form {
  position: absolute;
  top: 4px;
  right: 4px;
}

.dform_img_delete_btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.dform_img_delete_btn:hover {
  background: #dc2626;
}

/* Utility */
.mt-3 { margin-top: 16px; }

/* -----------------------------------------------
   DASHBOARD FORM — MOBILE
----------------------------------------------- */
@media only screen and (max-width: 768px) {

  .dform_grid--3,
  .dform_grid--2 {
    grid-template-columns: 1fr;
  }

  .dform_section {
    padding: 18px 16px;
  }

  .dform_submit_row {
    flex-direction: column;
    align-items: stretch;
  }

  .dform_cancel_btn,
  .dform_submit_btn {
    text-align: center;
    justify-content: center;
  }

}
