<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@yield('title', 'RapidSewa Admin')</title>
    <style>
        :root {
            --blue:#1B4FD8; --orange:#F97316; --green:#10B981; --ink:#111827; --muted:#667085;
            --bg:#eef3fb; --panel:#ffffff; --line:#d8e1ef; --red:#dc2626; --purple:#7c3aed;
        }
        * { box-sizing:border-box; }
        body { margin:0; font-family:Inter, Arial, sans-serif; background:var(--bg); color:var(--ink); }
        a { text-decoration:none; color:inherit; }
        .shell { display:grid; grid-template-columns:280px 1fr; min-height:100vh; }
        .sidebar { background:#0f172a; color:#e5edff; padding:18px; overflow:auto; }
        .brand { display:flex; gap:12px; align-items:center; margin-bottom:18px; padding:10px; }
        .brand-mark { width:42px; height:42px; border-radius:10px; background:linear-gradient(135deg,var(--blue),var(--green)); display:grid; place-items:center; font-weight:900; color:#fff; }
        .brand-title { font-weight:900; font-size:20px; }
        .brand-sub { color:#9fb1d1; font-size:12px; margin-top:2px; }
        details { border:1px solid rgba(255,255,255,.08); border-radius:10px; margin-bottom:10px; background:rgba(255,255,255,.035); }
        summary { cursor:pointer; padding:12px; font-weight:800; list-style:none; }
        summary::-webkit-details-marker { display:none; }
        .nav-link { display:flex; align-items:center; gap:10px; padding:10px 12px; color:#cbd5e1; border-radius:8px; margin:4px 8px; font-size:14px; }
        .nav-link:hover { background:#1e293b; color:#fff; }
        .nav-icon { width:26px; height:26px; border-radius:7px; display:grid; place-items:center; background:rgba(27,79,216,.28); color:#bfdbfe; font-weight:800; font-size:12px; }
        .main { padding:24px; min-width:0; }
        .topbar { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
        .topbar h1 { margin:0; font-size:24px; }
        .crumb { color:var(--muted); font-size:13px; margin-top:4px; }
        .panel { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:18px; box-shadow:0 12px 30px rgba(15,23,42,.04); }
        .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:18px; }
        .stat { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px; position:relative; overflow:hidden; }
        .stat:after { content:""; position:absolute; right:-24px; top:-24px; width:72px; height:72px; border-radius:50%; background:rgba(27,79,216,.1); }
        .stat span { color:var(--muted); font-size:13px; }
        .stat strong { display:block; font-size:26px; margin-top:8px; }
        .tone-green:after { background:rgba(16,185,129,.15); } .tone-orange:after { background:rgba(249,115,22,.15); } .tone-purple:after { background:rgba(124,58,237,.15); } .tone-red:after { background:rgba(220,38,38,.14); }
        .actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
        button,.btn { border:0; border-radius:8px; background:var(--blue); color:#fff; padding:10px 14px; font-weight:800; cursor:pointer; display:inline-block; }
        .btn-orange { background:var(--orange); } .btn-green { background:var(--green); } .btn-gray { background:#475569; } .btn-red { background:var(--red); }
        table { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
        th,td { padding:12px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; vertical-align:top; }
        th { background:#f1f6ff; color:#344054; font-size:12px; text-transform:uppercase; }
        tr:hover td { background:#fbfdff; }
        input,select,textarea { width:100%; border:1px solid var(--line); border-radius:8px; padding:10px 11px; font:inherit; background:#fff; }
        textarea { min-height:110px; }
        .editor { min-height:210px; font-family:Consolas, monospace; }
        label { display:block; color:#475467; font-size:13px; font-weight:700; margin-bottom:6px; }
        .form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
        .full { grid-column:1 / -1; }
        .status { padding:11px 12px; background:#ecfdf3; color:#047857; border:1px solid #a7f3d0; border-radius:8px; margin-bottom:14px; }
        .error { padding:11px 12px; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:8px; margin-bottom:14px; }
        .bar { height:12px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
        .bar span { display:block; height:100%; background:linear-gradient(90deg,var(--blue),var(--green)); }
        .map-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:16px; }
        .map-box { min-height:420px; border-radius:12px; border:1px dashed #94a3b8; background:linear-gradient(135deg,#e0f2fe,#ecfdf3); display:grid; place-items:center; color:#334155; text-align:center; padding:24px; }
        .login-page { min-height:100vh; display:grid; place-items:center; padding:20px; background:linear-gradient(135deg,#e0f2fe,#fff7ed); }
        .login-card { width:min(440px,100%); background:#fff; border:1px solid var(--line); border-radius:16px; padding:30px; box-shadow:0 24px 60px rgba(15,23,42,.12); }
        .login-card h1 { margin:0 0 8px; }
        .muted { color:var(--muted); }
        .pagination { margin-top:16px; }
        @media (max-width:900px) { .shell,.map-grid { grid-template-columns:1fr; } .main { padding:14px; } }
    </style>
</head>
<body>
@yield('body')
</body>
</html>
