* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

a {
  text-decoration: none;
}

.topbar {
  background: #0f172a;
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand h1 {
  margin: 0;
  font-size: 26px;
}

.brand p {
  margin: 4px 0 0;
  color: #cbd5e1;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 30px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.hero h2 {
  margin-top: 0;
}

.hero-actions {
  margin-top: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat-card h3 {
  margin-top: 0;
}

.stat-value {
  font-size: 40px;
  font-weight: bold;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary {
  background: #dc2626;
  color: white;
}

.btn-light {
  background: white;
  color: #0f172a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
}

.full {
  grid-column: 1 / -1;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.status-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  height: fit-content;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
  font-size: 18px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.muted {
  color: #6b7280;
  margin-top: 18px;
}
.stats-transport{
display:flex;
gap:20px;
margin:30px 0;
}

.stat-box{
flex:1;
background:#f5f5f5;
padding:20px;
border-radius:12px;
text-align:center;
}

.stat-box h2{
font-size:28px;
margin-bottom:5px;
}
.empty-box {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
}

.footer {
  margin-top: 40px;
  background: #0f172a;
  color: white;
  padding: 24px;
  text-align: center;
}

.toast {
  margin-bottom: 10px;
  background: #111827;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.toast-success {
  background: #166534;
}

.toast-error {
  background: #b91c1c;
}

@media (max-width: 768px) {
  .form-grid,
  .order-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .order-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
.hero-transport{
display:flex;
align-items:center;
justify-content:space-between;
padding:40px;
background:linear-gradient(135deg,#0f172a,#1e293b);
color:white;
border-radius:16px;
margin-bottom:30px;
}

.hero-left{
max-width:500px;
}

.hero-left h1{
font-size:42px;
margin-bottom:10px;
}

.hero-left p{
opacity:0.9;
margin-bottom:20px;
}

.hero-buttons{
display:flex;
gap:15px;
}

.btn-primary{
background:#e53935;
padding:12px 18px;
border-radius:8px;
color:white;
text-decoration:none;
font-weight:bold;
}

.btn-secondary{
background:white;
color:#111;
padding:12px 18px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
}

.hero-right svg{
width:320px;
}
.simple-form{
display:grid;
gap:15px;
max-width:400px;
margin-top:20px;
}

.simple-form input,
.simple-form select{
padding:12px;
border-radius:8px;
border:1px solid #ccc;
}

.result{
margin-top:20px;
font-size:18px;
}
.admin-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.admin-table th,
.admin-table td{
padding:12px;
border-bottom:1px solid #ddd;
text-align:left;
}

.admin-table th{
background:#f4f6fb;
}
.menu{
display:flex;
gap:15px;
background:#0f172a;
padding:15px;
}

.menu button{
background:white;
border:none;
padding:10px 16px;
border-radius:6px;
cursor:pointer;
}
.menu{
display:flex;
gap:10px;
background:#0f172a;
padding:12px 20px;
border-radius:8px;
margin-bottom:20px;
}

.menu button{
background:#1e293b;
color:white;
border:none;
padding:8px 14px;
border-radius:6px;
font-size:14px;
cursor:pointer;
transition:0.2s;
}

.menu button:hover{
background:#e53935;
}
h2{
font-weight:600;
font-size:24px;
margin-bottom:10px;
}

.page p{
color:#666;
font-size:15px;
}
.stats-transport{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin:30px 0;
}

.stat-box{
background:white;
padding:25px;
border-radius:12px;
text-align:center;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.stat-box h2{
font-size:26px;
margin-bottom:5px;
}
.cockpit{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:20px;
}

.cockpit-card{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
text-align:center;
}

.cockpit-card h3{
font-size:34px;
color:#e53935;
margin-bottom:5px;
}

.cockpit-card p{
color:#666;
font-size:14px;
}
.client-search{
position:relative;
max-width:400px;
}

.client-results{
position:absolute;
background:white;
border:1px solid #ddd;
border-radius:6px;
width:100%;
max-height:200px;
overflow-y:auto;
z-index:1000;
}

.client-item{
padding:10px;
cursor:pointer;
border-bottom:1px solid #eee;
}

.client-item:hover{
background:#f5f5f5;
}
.client-results{
background:white;
border:1px solid #ccc;
max-height:200px;
overflow:auto;
}

.client-item{
padding:8px;
cursor:pointer;
}

.client-item:hover{
background:#f1f1f1;
}
select {
font-size:16px;
padding:6px;
height:34px;
}

select option{
font-size:16px;
}
#clientSelect{
font-size:16px;
min-width:200px;
}
#clientResults{
  margin-top:8px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  max-height:220px;
  overflow-y:auto;
}

.client-item{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid #eee;
  font-size:15px;
}

.client-item:last-child{
  border-bottom:none;
}

.client-item:hover{
  background:#f5f7fb;
}
#addressResults{
border:1px solid #ddd;
border-radius:8px;
background:white;
max-height:200px;
overflow-y:auto;
margin-top:5px;
}

.address-item{
padding:10px;
cursor:pointer;
border-bottom:1px solid #eee;
}

.address-item:hover{
background:#f5f7fb;
}
.cockpit{

display:flex;
height:90vh;

}

#map{

flex:3;

}

.sidepanel{

flex:1;
background:#f5f7fb;
padding:20px;
overflow:auto;

}
.route-number div{

background:#e53935;
color:white;

width:30px;
height:30px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-weight:bold;

border:2px solid white;

}
#labels{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:10px;

margin-top:20px;

}

.label{

border:1px solid #000;

padding:10px;

text-align:center;

width:300px;

}

.label-title{

font-weight:bold;

margin-bottom:5px;

}

.parcel-number{

font-size:14px;

margin-top:5px;

}
