* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7fb;
  color: #182230;
}

.hidden {
  display: none !important;
}

/* ================= AUTH SCREEN ================= */

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  padding: 38px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 40, 80, 0.12);
}

.brand-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 18px;
}

.brand-icon.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
  margin: 0;
}

.auth-card h1 {
  font-size: 25px;
  margin: 0 0 8px;
}

.auth-card > p {
  color: #667085;
}

.auth-card form {
  display: grid;
  gap: 9px;
  margin-top: 25px;
}

/* ================= INPUTS ================= */

.auth-card input,
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  background: #fff;
}

label {
  font-weight: 650;
  font-size: 14px;
  margin-top: 7px;
}

/* ================= BUTTONS ================= */

.primary-btn,
.secondary-btn,
.action-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary-btn {
  background: #2563eb;
  color: #fff;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  background: #edf1f7;
  color: #344054;
}

.form-message {
  min-height: 18px;
  color: #d92d20;
}

.small-note {
  font-size: 13px;
}

/* ================= SIDEBAR ================= */

.sidebar {
  position: fixed;
  width: 250px;
  top: 0;
  bottom: 0;
  background: #fff;
  border-right: 1px solid #e6eaf0;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 28px;
}

.sidebar-brand span {
  display: block;
  color: #7b8797;
  font-size: 12px;
  margin-top: 3px;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.nav-btn {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px;
  border-radius: 10px;
  color: #526070;
  font-weight: 650;
  cursor: pointer;
}

.nav-btn.active,
.nav-btn:hover {
  background: #eff5ff;
  color: #2563eb;
}

.logout-btn {
  margin-top: auto;
  border: 0;
  background: #fff1f1;
  color: #d92d20;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* ================= MAIN CONTENT ================= */

.main-content {
  margin-left: 250px;
  padding: 28px;
  max-width: 1700px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.topbar h1 {
  font-size: 27px;
  margin: 0;
}

.topbar p {
  color: #667085;
  margin: 7px 0 0;
}

/* ================= STATS ================= */

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e9edf3;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.03);
}

.stat-card span {
  display: block;
  color: #667085;
  font-size: 14px;
}

.stat-card strong {
  display: block;
  font-size: 27px;
  margin-top: 12px;
}

.stat-card.yellow {
  border-top: 4px solid #eab308;
}

.stat-card.green {
  border-top: 4px solid #22c55e;
}

.stat-card.blue {
  border-top: 4px solid #2563eb;
}

.stat-card.neutral {
  border-top: 4px solid #94a3b8;
}

/* ================= PANEL ================= */

.panel {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  padding: 22px;
}

.panel-header h2 {
  margin: 0;
}

.panel-header p {
  color: #667085;
  margin: 7px 0 20px;
}

/* ================= CONTROLS ================= */

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.controls input {
  flex: 1 1 auto;
  min-width: 200px;
}

/* ================= REPAIR CARDS ================= */

.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.repair-card {
  background: #fff;
  border: 1px solid #e4e9f0;
  border-left: 6px solid #94a3b8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.04);
}

.repair-card.repairing {
  border-left-color: #eab308;
  background: #fffdf0;
}

.repair-card.completed {
  border-left-color: #22c55e;
  background: #f4fff7;
}

.repair-card.warning {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.repair-card.overdue {
  border-left-color: #991b1b;
  background: #fff3f3;
}

.repair-card h3 {
  margin: 0 0 5px;
}

.muted {
  color: #667085;
  font-size: 13px;
}

.card-row {
  margin: 10px 0;
  color: #475467;
  line-height: 1.45;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  background: #eef2f6;
  color: #475467;
}

/* ================= CARD ACTIONS ================= */

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.action-btn {
  padding: 9px 11px;
  font-size: 13px;
}

.complete {
  background: #22c55e;
  color: #fff;
}

.edit {
  background: #eaf1ff;
  color: #2563eb;
}

.delete {
  background: #fff0f0;
  color: #d92d20;
}

.receipt {
  background: #f2f4f7;
  color: #344054;
}

.phone-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.countdown {
  font-weight: 750;
  color: #d92d20;
}

/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 10;
}

.modal-content {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 25px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
}

.modal-header p {
  margin: 6px 0;
  color: #667085;
}

.icon-btn {
  border: 0;
  background: #f2f4f7;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 24px;
  cursor: pointer;
}

/* ================= FORM ================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ================= TOAST ================= */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #182230;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  z-index: 20;
}

/* ================= EMPTY STATE ================= */

.empty {
  padding: 45px;
  text-align: center;
  color: #667085;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  grid-column: 1 / -1;
}

/* ================= TABLET ================= */

@media (max-width: 1050px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= MOBILE ================= */

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .sidebar-brand {
    padding: 0;
    flex: 1;
  }

  .sidebar nav {
    display: flex;
  }

  .nav-btn {
    font-size: 0;
    padding: 10px;
  }

  .nav-btn:first-letter {
    font-size: 18px;
  }

  .logout-btn {
    margin: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 15px;
  }

  .topbar {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .controls {
    flex-direction: column;
  }

  .repair-grid {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 22px;
  }
}/* COMPACT REPAIR TILES */


.repair-grid{
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:12px;
}

.repair-card{
  padding:14px;
}

.repair-card h3{
  font-size:17px;
}

.card-row{
  margin:7px 0;
  font-size:14px;
}

.card-actions{
  margin-top:12px;
  gap:6px;
}

.action-btn{
  padding:8px 9px;
  font-size:12px;
}

/* DELIVERED STATUS */
.repair-card.delivered{
  border-left-color:#2563eb;
  background:#eff6ff;
}

.delivered-stat{
  border-top:4px solid #2563eb;
}
/* CUSTOMER REPAIR TRACKING */

.tracking-page {
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;

  background-image: url("../store.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay */
.tracking-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

/* Keep all content above overlay */
.tracking-container {
  position: relative;
  z-index: 1;
}
.tracking-container {
max-width: 700px;
margin: auto;
}

.tracking-logo {
width: 65px;
height: 65px;
background: linear-gradient(to right, rgb(120, 120, 234) 20%,#2563eb 80%);
color: white;
border-radius: 100px;
display: grid;
place-items: center;
font-weight: bold;
font-size: 22px;
margin: 0 auto 15px;
}


.tracking-container > h1 {
text-align: center;
margin: 0;
}

.tracking-subtitle {
text-align: center;
color: #090f1d;
margin-bottom: 30px;
}

.tracking-search {
background: white;
padding: 25px;
border-radius: 18px;
border: 1px solid #e4e9f0;
}

.tracking-input-row {
display: flex;
gap: 10px;
margin-top: 8px;
}

.tracking-input-row input {
flex: 1;
}

.tracking-input-row button {
border: 0;
border-radius: 10px;
padding: 12px 20px;
background: #2563eb;
color: white;
font-weight: bold;
cursor: pointer;
}

.tracking-note {
color: #667085;
font-size: 13px;
margin-bottom: 0;
}

.tracking-card {
background: white;
margin-top: 20px;
padding: 22px;
border-radius: 18px;
border: 1px solid #e4e9f0;
}

.tracking-card h2 {
margin: 15px 0;
}

.tracking-status {
display: inline-block;
padding: 7px 12px;
border-radius: 999px;
font-size: 13px;
font-weight: bold;
}

.tracking-status.pending {
background: #eef2f6;
}

.tracking-status.repairing {
background: #fef3c7;
}

.tracking-status.completed {
background: #aaffc8;
}

.tracking-status.delivered {
background: #aacbf6;
color: #1d4ed8;
}

.tracking-info {
display: grid;
gap: 12px;
}

.tracking-info div {
padding: 12px;
background: #f8fafc;
border-radius: 10px;
}

.tracking-info span {
display: block;
color: #667085;
font-size: 13px;
margin-bottom: 5px;
}

.tracking-error {
margin-top: 20px;
padding: 15px;
background: #fff1f1;
color: #d92d20;
border-radius: 12px;
}

.tracking-loading {
margin-top: 20px;
padding: 15px;
text-align: center;
color: #667085;
}

@media (max-width: 600px) {

.tracking-input-row {
flex-direction: column;
}

.tracking-input-row button {
width: 100%;
}

}
/* FORCE TEXT TO BE VISIBLE ON BACKGROUND */

.tracking-page {
  position: relative;
}

.tracking-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.tracking-container {
  position: relative !important;
  z-index: 2 !important;
}

.tracking-container h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.tracking-subtitle,
.tracking-note,
.tracking-container label {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Make the search section readable */
.tracking-search {
  background: rgba(15, 23, 42, 0.88) !important;
  padding: 25px !important;
  border-radius: 18px !important;
  backdrop-filter: blur(10px);
}

/* Keep input readable */
.tracking-input-row input {
  background: #ffffff !important;
  color: #111827 !important;
}

/* Results card */
.tracking-card {
   border-left: 6px solid slategrey;
  background: #ebedfbd7;
  color: #111827;
}

/* Under Repair - Blue */
.tracking-card-repairing {
  border-left: 6px solid #c6cc10;
  background: #fef3c7;
}


/* Completed - Green */
.tracking-card-completed {
  border-left: 6px solid #22c55e;
 background: #dcfce7;
 color: #15803d;
}


/* Delivered - Blue */
.tracking-card-delivered {
  border-left: 6px solid #3b82f6;
  background: #dbeafe;
  color: #1d4ed8;
}
