
/* assets/css/app.css — Daluz Space UI (mobile agenda upgrade) */
:root{
  --bg:#0b0d12; --bg-2:#0f1220; --card:#0f1424; --card-2:#10182c; --muted:#9aa3b2;
  --fg:#e5e9f0; --primary:#3b82f6; --primary-2:#2563eb; --accent:#22d3ee; --ok:#22c55e; --warn:#f59e0b; --danger:#ef4444;
  --ring: 0 0 0 3px rgba(59,130,246,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu; color:var(--fg); background: radial-gradient(1200px 800px at 110% -10%, #121426, #0b0d12);}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.container{max-width:1180px; margin:0 auto; padding:20px}

/* Cards */
.card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); box-shadow:0 20px 60px rgba(0,0,0,.35);}
.card.pad{padding:20px}

/* Inputs */
.input, .select, .btn{
  border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06); color:var(--fg); padding:12px 14px; outline:none; width:100%;
}
.input:focus, .select:focus{ box-shadow: var(--ring); border-color:rgba(59,130,246,.6); }
.btn{cursor:pointer; border:0; font-weight:700; background:linear-gradient(180deg,var(--primary),var(--primary-2)); color:#fff; box-shadow:0 10px 30px rgba(37,99,235,.35)}
.btn.ghost{background:transparent; border:1px solid rgba(255,255,255,.12)}
.btn.ok{background:linear-gradient(180deg,#16a34a,#15803d)}
.btn.warn{background:linear-gradient(180deg,#f59e0b,#d97706)}
.btn.danger{background:linear-gradient(180deg,#ef4444,#dc2626)}
.btn:disabled{opacity:.6; cursor:not-allowed}

/* Grid utilities */
.grid{display:grid; gap:14px}
.grid.cols-2{grid-template-columns:1fr 1fr}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:960px){ .grid.cols-3,.grid.cols-4{grid-template-columns:1fr 1fr} }
@media (max-width:640px){ .grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:1fr} }

/* Header */
.header{display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.08); position:sticky; top:0; z-index:10;
  background:linear-gradient(180deg, rgba(16,24,44,.85), rgba(16,24,44,.55)); backdrop-filter: blur(8px)}
.brand{display:flex; gap:12px; align-items:center}
.brand img{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.12);object-fit:cover}
.badge{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08); font-size:12px}

/* Sidebar for dashboard */
.sidebar{width:90px; position:sticky; left:0; top:0; height:100vh; border-right:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); display:flex; flex-direction:column; align-items:center; gap:16px; padding:16px 10px}
.menu-item{display:grid; place-items:center; gap:6px; cursor:pointer; user-select:none}
.menu-item small{font-size:11px; color:#cfd2d9}
.logo{width:56px;height:56px;border-radius:14px;border:1px solid rgba(255,255,255,.12);object-fit:cover}

/* Agenda grid (desktop/week) */
.agenda-grid{
  display:grid; grid-template-columns:90px repeat(7,1fr); grid-template-rows:40px repeat(11,64px);
  border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden; min-width:780px;
}
.cab{background:linear-gradient(180deg,#0e7490,#155e75); display:grid; place-items:center; font-weight:700}
.hora{background:rgba(255,255,255,.05); display:grid; place-items:center; font-weight:700; border-top:1px solid rgba(255,255,255,.06); position:sticky; left:0; z-index:1}
.c{position:relative; background:rgba(255,255,255,.02); border-top:1px dashed rgba(255,255,255,.06); border-right:1px solid rgba(255,255,255,.03)}
.evento{position:absolute; left:8px; right:8px; top:8px; background:linear-gradient(180deg,#16a34a,#15803d); color:#fff; font-size:12px; padding:8px 10px; border-radius:10px; box-shadow:0 6px 18px rgba(34,197,94,.25)}
.empty{display:grid; place-items:center; color:#cbd5e1; font-size:14px; padding:16px}

/* View switcher */
.view-switch{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.segment{display:inline-flex; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:999px; overflow:hidden}
.segment button{border:0; background:transparent; padding:8px 12px; color:#cbd5e1; cursor:pointer}
.segment button.active{background:rgba(255,255,255,.16); color:#fff}

/* Mobile day list */
.day-head{display:flex; align-items:center; justify-content:space-between; gap:8px}
.day-head .date{font-weight:800; letter-spacing:.2px}
.nav-btn{border:0; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); color:#fff; border-radius:10px; padding:8px 10px; cursor:pointer}
.day-list{display:none; margin-top:10px}
.slot{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04)}
.slot .time{font-weight:800}
.slot .client{opacity:.9}
.slot.busy{background:linear-gradient(180deg, rgba(34,197,94,.15), rgba(34,197,94,.08)); border-color:rgba(34,197,94,.35)}
.slot.free{opacity:.85}
.slot button{white-space:nowrap}
.help{color:var(--muted); font-size:12px}

/* Responsive tweaks */
@media (max-width: 820px){
  .sidebar{flex-direction:row; width:100%; height:auto; position:fixed; bottom:0; border-right:0; border-top:1px solid rgba(255,255,255,.08)}
  body{padding-bottom:80px}
}
@media (max-width: 700px){
  .agenda-grid{display:none} /* hide week grid on small screens by default; use day list */
  .day-list{display:grid; gap:10px}
}
