:root{
  --bg:#f4f7f6;
  --panel:#ffffff;
  --text:#1f2933;
  --muted:#64748b;
  --border:#dbe5e0;
  --brand:#0a6233;
  --brand-2:#0f8a4f;
  --brand-soft:#eaf8f0;
  --danger:#b42318;
  --warning:#a15c00;
  --success:#0b7a3b;
  --shadow:0 14px 36px rgba(15,23,42,.08);
  --radius:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:linear-gradient(180deg, rgba(10,98,51,.08), rgba(10,98,51,0) 240px), var(--bg);
  color:var(--text);
}

a{
  color:var(--brand);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-shell{
  width:100%;
  max-width:430px;
}

.login-card{
  background:rgba(255,255,255,.95);
  border:1px solid rgba(219,229,224,.9);
  border-radius:26px;
  padding:34px 28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}

.brand-mark{
  width:64px;
  height:64px;
  margin:0 auto 16px;
  border-radius:20px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.04em;
  font-size:1.15rem;
  box-shadow:0 12px 24px rgba(10,98,51,.2);
}

.login-card h1{
  margin:0;
  text-align:center;
  color:var(--brand);
  font-size:1.55rem;
}

.login-subtitle{
  margin:8px 0 22px;
  text-align:center;
  color:var(--muted);
}

label{
  display:block;
  margin:14px 0 6px;
  font-weight:750;
  font-size:.92rem;
}

input,
select,
textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 13px;
  font-size:.96rem;
  background:#fff;
  color:var(--text);
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--brand-2);
  box-shadow:0 0 0 4px rgba(15,138,79,.13);
}

button,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:999px;
  padding:11px 18px;
  font-weight:850;
  font-size:.94rem;
  cursor:pointer;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  box-shadow:0 10px 22px rgba(10,98,51,.18);
  text-decoration:none;
}

button:hover,
.btn:hover{
  transform:translateY(-1px);
  text-decoration:none;
}

.login-card button{
  width:100%;
  margin-top:22px;
  padding:13px 18px;
}

.login-footnote{
  text-align:center;
  color:var(--muted);
  font-size:.82rem;
  margin-top:18px;
}

.alert{
  border-radius:14px;
  padding:12px 14px;
  margin:14px 0;
  font-size:.92rem;
  font-weight:650;
}

.alert-error{
  background:#fff1f1;
  color:var(--danger);
  border:1px solid #ffd1d1;
}

.alert-success{
  background:#eaf8f0;
  color:var(--success);
  border:1px solid #bde8cf;
}

.admin-shell{
  min-height:100vh;
}

.admin-topbar{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:20;
}

.admin-topbar-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.admin-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.admin-brand-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.admin-brand-title{
  font-weight:900;
  color:var(--brand);
}

.admin-brand-subtitle{
  color:var(--muted);
  font-size:.84rem;
  margin-top:2px;
}

.admin-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn-light{
  background:#fff;
  color:var(--brand);
  border:1px solid var(--border);
  box-shadow:none;
}

.admin-main{
  max-width:1180px;
  margin:0 auto;
  padding:24px 18px 44px;
}

.page-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:18px;
}

.page-title{
  margin:0;
  color:var(--brand);
  font-size:1.8rem;
  letter-spacing:-.03em;
}

.page-subtitle{
  color:var(--muted);
  margin:6px 0 0;
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin-bottom:18px;
}

.stat-card{
  padding:16px;
}

.stat-label{
  color:var(--muted);
  font-size:.83rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.stat-value{
  font-size:1.55rem;
  font-weight:950;
  color:var(--brand);
  margin-top:6px;
}

.filters{
  padding:16px;
  margin-bottom:18px;
}

.filters-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr 1.4fr auto;
  gap:12px;
  align-items:end;
}

.table-card{
  overflow:hidden;
}

.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}

th,
td{
  padding:13px 14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:.92rem;
}

th{
  background:#f8fbf9;
  color:var(--muted);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:900;
}

tr:hover td{
  background:#fbfffc;
}

.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 9px;
  font-size:.78rem;
  font-weight:850;
  border:1px solid transparent;
  white-space:nowrap;
}

.badge-success{
  background:#eaf8f0;
  color:var(--success);
  border-color:#bde8cf;
}

.badge-warning{
  background:#fff7e8;
  color:var(--warning);
  border-color:#ffe1a8;
}

.badge-muted{
  background:#f1f5f9;
  color:#475569;
  border-color:#dbe3ed;
}

.badge-danger{
  background:#fff1f1;
  color:var(--danger);
  border-color:#ffd1d1;
}

.row-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-small{
  padding:7px 10px;
  font-size:.8rem;
  box-shadow:none;
}

.mobile-cards{
  display:none;
}

.booking-mobile-card{
  padding:15px;
  border-bottom:1px solid var(--border);
}

.booking-mobile-card:last-child{
  border-bottom:none;
}

.mobile-title{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
  color:var(--brand);
}

.mobile-meta{
  color:var(--muted);
  font-size:.9rem;
  margin-top:5px;
  line-height:1.4;
}

.meta-line{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.45;
}

.strong{
  font-weight:850;
  color:var(--text);
}

.empty-state{
  padding:34px 18px;
  text-align:center;
  color:var(--muted);
}

@media (max-width:860px){
  .page-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .stats-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .filters-grid{
    grid-template-columns:1fr;
  }

  .desktop-table{
    display:none;
  }

  .mobile-cards{
    display:block;
  }
}

@media (max-width:520px){
  .stats-grid{
    grid-template-columns:1fr;
  }

  .admin-topbar-inner{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-actions{
    width:100%;
    justify-content:space-between;
  }

  .page-title{
    font-size:1.45rem;
  }
}