/* assets/app.css – Novaram UI (desktop + mobil) */

/* ===== Theme ===== */
:root{
  --bg:#0f1115;
  --card:#1a1f27;
  --muted:#8a94a7;
  --text:#e6e9ef;
  --danger:#ff5d5d;
  --success:#35c97a;
  --primary:#4ea3ff;
  --primary-2:#357eea;
  --ring:#3b82f6;
  --border:#2a3039;
  --line:#1f2937;
  --sidebar:#0b1220;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ===== Layout (desktop default) ===== */
.layout{
  min-height:100dvh;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:0;
}

/* Sidebar (desktop) */
.sidebar{
  background:var(--sidebar);
  border-right:1px solid var(--border);
  padding:18px 14px;
  position:relative;
}
.sidebar .logo{
  display:block;
  height:48px;
  margin:2px auto 16px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.nav a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:10px;
  color:#dbe2f0; text-decoration:none;
  border:1px solid transparent;
}
.nav a:hover{ background:#0f1624; border-color:#1e293b; }
.nav a.active{ background:#172033; border-color:#264162; color:#fff; font-weight:600; }
.nav .section{ margin:10px 6px 6px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px; }

/* Content */
.content{
  padding:24px;
}
h1{margin:0 0 6px}
.subtitle{color:var(--muted);margin-bottom:12px}

/* Cards, buttons, alerts */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)), var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}
h2{margin:0 0 12px}
.btn, button{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #3b6fd6;
  background:linear-gradient(180deg,var(--primary),var(--primary-2));
  color:#fff; font-weight:600; letter-spacing:.2px;
  cursor:pointer; text-decoration:none;
}
.btn.btn-secondary{
  background:#0b1220; color:#e6e9ef; border-color:#334155;
}
.alert{
  background:#2a1111;
  border:1px solid rgba(255,93,93,.5);
  color:#ffd6d6;
  padding:10px 12px;
  border-radius:10px;
  margin:0 0 12px;
  font-size:14px;
}
.alert.success{
  background:#0f291d; color:#d7ffe9; border-color:rgba(53,201,122,.5);
}

/* Tables / inputs */
table{width:100%;border-collapse:collapse}
th,td{padding:8px 10px;border-bottom:1px solid var(--line)}
th{text-align:left;color:#94a3b8;font-weight:600}
tr:hover{background:#0f172a}
input[type="text"],input[type="email"],input[type="password"],input[type="date"],select,textarea{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid #334155; background:#0b1220; color:#e5e7eb;
}
.checkbox{display:inline-flex;gap:8px;align-items:center;font-size:14px;color:#c7d2fe}
.grid{display:grid; gap:10px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.tile{
  display:block; text-decoration:none; color:#e6e9ef;
  padding:14px; border-radius:12px; border:1px solid var(--border); background:#0b1220;
}
.tile:hover{background:#121a29}

/* ===== Mobile header + off-canvas sidebar ===== */
.mobile-header{
  display:none; /* visible on mobile */
  position:fixed; top:0; left:0; right:0; height:56px;
  background:var(--sidebar); border-bottom:1px solid var(--border);
  align-items:center; justify-content:space-between;
  padding:0 12px; z-index:50;
}
.mobile-header .logo{height:36px}
.menu-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px; border:1px solid #334155;
  background:#0b1220; color:#e6e9ef; cursor:pointer;
}
.menu-btn:active{transform:translateY(1px)}
.overlay{
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:40;
}

/* Off-canvas behaviour */
@media (max-width: 920px){
  .layout{ display:block; }
  .mobile-header{ display:flex; }
  .content{ padding:72px 16px 20px; } /* room for top bar */
  .sidebar{
    position:fixed; top:0; left:-280px; bottom:0; width:260px;
    z-index:60; padding:18px 14px 18px; overflow:auto;
    transition:left .18s ease-out, box-shadow .18s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .sidebar.open{ left:0; }
  .overlay.show{ display:block; }
  /* Some spacing tweaks */
  .grid-3{grid-template-columns:1fr}
}

/* ===== Utilities ===== */
.muted{color:var(--muted)}
.hidden{display:none!important}
