/* =========  Design System  ========= */
:root{
  --bg-1:#0b1a2e;
  --bg-2:#071629;
  --glass: rgba(255,255,255,.06);
  --glass-b: rgba(255,255,255,.10);
  --ink:#e6f0ff;
  --muted:#9ab7e0;
  --accent:#8fb2ff;
  --primary:#3aa1ff;
  --success:#42d392;
  --warning:#f5b400;
  --danger:#ff5c5c;
  --radius:18px;
  --shadow:0 14px 36px rgba(0,0,0,.35);
}

/* =========  Base  ========= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:radial-gradient(1200px 700px at 70% -10%, #14345c 0%, var(--bg-1) 40%, var(--bg-2) 100%);
}
a{color:inherit}

/* =========  Layout  ========= */
.container{max-width:1200px;margin:auto;padding:26px}
.header{text-align:center;margin:6px 0 18px}
.header h1{margin:0 0 6px;color:var(--accent);font-weight:800;font-size:2rem}
.header .sub{color:var(--muted)}

.footer{color:var(--muted);text-align:center;margin-top:36px;font-size:.85rem}

/* =========  Cards / Glass  ========= */
.card{
  background:var(--glass);
  border:1px solid var(--glass-b);
  border-radius:var(--radius);
  padding:18px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.card-glass{ background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); }

/* =========  Grid - Home tiles  ========= */
.grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.tile{
  display:block; text-decoration:none; color:inherit;
  background:var(--glass); border:1px solid var(--glass-b); border-radius:22px;
  padding:20px 18px; backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.25); transition:.15s;
}
.tile:hover{transform:translateY(-4px); box-shadow:0 18px 36px rgba(0,0,0,.35)}
.tile h3{margin:6px 0 4px; color:#fff; font-weight:800}
.tile p{margin:0;color:var(--muted)}
.icon{width:46px;height:46px;margin-bottom:10px;fill:#60a5fa}

/* =========  Form  ========= */
label{display:block;margin:10px 0 6px}
input, select, textarea{
  width:100%; padding:12px 12px; border-radius:12px; outline:0;
  border:1px solid rgba(255,255,255,.14); color:var(--ink);
  background:rgba(2,10,24,.35);
}
textarea{min-height:120px;resize:vertical}
.form-row{display:grid;gap:12px;grid-template-columns:repeat(12,1fr)}
.col-12{grid-column:span 12}.col-6{grid-column:span 6}.col-4{grid-column:span 4}.col-3{grid-column:span 3}
@media (max-width:900px){.col-6,.col-4,.col-3{grid-column:span 12}}

.checkbox-group{display:flex;flex-wrap:wrap;gap:14px}
.notice{color:var(--muted);font-size:.92rem}
.hr{height:1px;background:rgba(255,255,255,.14);margin:14px 0}

/* =========  Buttons  ========= */
.btn{
  display:inline-block; padding:10px 14px; border-radius:12px; border:1px solid var(--glass-b);
  background:rgba(255,255,255,.07); color:#fff; cursor:pointer; text-decoration:none;
  transition:.15s; box-shadow:0 6px 18px rgba(0,0,0,.2)
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:linear-gradient(135deg,#3aa1ff,#5869ff); border-color:transparent}
.btn.success{background:linear-gradient(135deg,#42d392,#2bb673);border-color:transparent}
.btn.ghost{background:transparent}
.actions{display:flex;gap:10px;flex-wrap:wrap}

/* =========  Tables (simple)  ========= */
.t{width:100%;border-collapse:separate;border-spacing:0 8px}
.t th,.t td{padding:10px 12px;background:rgba(255,255,255,.03)}
.t th{color:var(--muted);text-align:right}
.t td:first-child,.t th:first-child{border-radius:12px 0 0 12px}
.t td:last-child,.t th:last-child{border-radius:0 12px 12px 0}

/* =========  Print sheet  ========= */
.print-card{
  page-break-inside: avoid;
  background:#fff; color:#111; border-radius:18px; padding:22px;
  box-shadow:0 1px 0 #eee, 0 0 0 1px #e5e7eb inset;
}
.print-card h2{margin:0 0 10px}
.print-photo{width:110px;height:140px;border-radius:10px;object-fit:cover;border:1px solid #e3e3e3}
/* hide controls in print */
@media print{
  body{background:#fff}
  .no-print, .no-print * {display:none !important}
  .container{padding:0}
  .print-card{box-shadow:none;border:0;border-radius:0}
}