/* public/assets/css/app.css */
/* Dark, modern 2026 look & feel (no frameworks). */

:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.64);
  --muted-2: rgba(255,255,255,.45);
  --accent: #7C5CFF;
  --accent-2: #2EE59D;
  --danger: #FF4D6D;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(46,229,157,.12), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(255,77,109,.10), transparent 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

.app-shell{min-height:100%; display:flex; flex-direction:column}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:14px 18px;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; align-items:center; gap:12px}
.brand-dot{
  width:12px; height:12px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.15);
}
.brand-logo{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  background: rgba(0,0,0,.2);
}
.brand-name{font-weight:700; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; gap:10px}
.nav-link{
  font-size:13px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--muted);
}
.nav-link:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.03);
}

.topbar-actions{display:flex; align-items:center; gap:10px}
.topbar-user{
  font-size:12px;
  color: var(--muted);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.pill{
  font-size:12px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}
.pill.subtle{color:var(--muted)}
.pill-danger{
  border-color: rgba(255,77,109,.45);
  color: #FFD1DA;
  background: rgba(255,77,109,.18);
}

.main{flex:1; padding:22px; max-width:1200px; width:100%; margin:0 auto}

.grid{display:grid; grid-template-columns: 1.25fr .75fr; gap:18px}
@media (max-width: 960px){ .grid{grid-template-columns: 1fr} }

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-header{padding:18px 18px 8px}
.card-header h2{margin:0 0 6px; font-size:18px}
.card-header p{margin:0; color:var(--muted); font-size:13px}
.card-footer{display:flex; gap:10px; padding:14px 18px 18px}

.kpi-row{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; padding:10px 18px 0}
.kpi{
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  padding:12px 12px;
}
.kpi-label{color:var(--muted); font-size:12px}
.kpi-value{font-weight:700; margin-top:6px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(124,92,255,.35);
  background: rgba(124,92,255,.14);
  color: var(--text);
  font-size:13px;
}
.btn:hover{background: rgba(124,92,255,.20)}
.btn.admin{
  border-color: rgba(255,157,77,.45);
  background: rgba(255,157,77,.18);
  color: var(--text);
}
.btn.admin:hover{background: rgba(255,157,77,.28)}
.btn.rights{
  border-color: rgba(46,229,157,.45);
  background: rgba(46,229,157,.16);
  color: var(--text);
}
.btn.rights:hover{background: rgba(46,229,157,.28)}
.btn.ghost{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.btn.ghost:hover{color:var(--text); background: rgba(255,255,255,.05)}
.btn.danger{
  border:1px solid rgba(255,77,109,.45);
  background: rgba(255,77,109,.18);
  color: var(--text);
}
.btn.danger:hover{background: rgba(255,77,109,.3)}
.btn.disabled{
  opacity:.5;
  pointer-events:none;
}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}
.sso-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  width: fit-content;
}
.sso-button:hover{background: rgba(255,255,255,.08)}
.sso-button img{
  display:block;
  height:32px;
  width:auto;
}

.list{list-style:none; padding:0 18px 18px; margin:0; display:grid; gap:10px}
.list li{display:flex; align-items:center; gap:10px; color:var(--muted)}
.badge{
  width:26px; height:26px; border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  display:flex; align-items:center; justify-content:center;
  color: var(--text); font-weight:700; font-size:12px;
}

.content{padding:0 18px 18px}
.content h3{margin:18px 0 8px; font-size:14px}
.content pre{
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  border-radius: 14px;
  padding:12px;
  overflow:auto;
  color: rgba(255,255,255,.86);
}

.footer{
  display:flex; justify-content:space-between; gap:14px;
  padding:14px 18px;
  border-top:1px solid var(--border);
  color: var(--muted-2);
  font-size:12px;
  background: rgba(7,10,18,.55);
}
.muted{color:var(--muted)}

/* Progress */
.progress{
  width:100%;
  height:10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}
.progress-bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}
.cron-log{
  margin-top:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  border-radius: 14px;
  padding:12px;
  max-height:260px;
  overflow:auto;
  color: rgba(255,255,255,.86);
}

/* Admin bar */
.adminbar{
  margin-bottom:14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
}
.adminbar .nav-link{padding:8px 10px}
.adminbar-left{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.adminbar-right{display:flex; align-items:center; gap:10px}
.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
}
.label{font-size:12px; color:var(--muted); margin:10px 0 6px}
.row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:960px){.row{grid-template-columns:1fr}}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:10px;
}
@media(max-width:960px){.form-grid{grid-template-columns:1fr}}
.form-field{display:flex; flex-direction:column; gap:6px}
.form-label{font-size:12px; color:var(--muted)}

.alert{
  margin:12px 18px 18px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  font-size:13px;
}
.alert ul{margin:0; padding-left:18px}
.alert-warning{
  border-color: rgba(255,204,102,.35);
  color: #FFE7B8;
  background: rgba(255,204,102,.12);
}
.alert-success{
  border-color: rgba(46,229,157,.35);
  color: #C9FBE6;
  background: rgba(46,229,157,.12);
}
.table{width:100%; border-collapse:collapse; overflow:hidden; border-radius:14px; border:1px solid var(--border)}
.table th,.table td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.08); font-size:13px}
.table th{color:var(--muted); font-weight:600; text-align:left; background: rgba(255,255,255,.03)}
.table td .btn{padding:6px 10px; border-radius:12px; font-size:12px}
.table .actions{display:flex; gap:8px; flex-wrap:wrap}
.table-row-removed{background: rgba(255,77,109,.12)}
.checkbox-inline{display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted)}
.input--sm{padding:6px 8px; border-radius:10px; font-size:12px; width:auto}
.table-pager{display:flex; flex-direction:column; gap:8px}
.table-pager__footer{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted)}
.table-pager__controls{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.table-pager__size{display:inline-flex; align-items:center; gap:6px}
.table-pager__page{min-width:120px; text-align:center}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.status-success{border-color: rgba(46,229,157,.5); color:#C9FBE6; background: rgba(46,229,157,.15)}
.status-failed{border-color: rgba(255,77,109,.55); color:#FFD1DA; background: rgba(255,77,109,.18)}
.status-running{border-color: rgba(124,92,255,.5); color:#DAD0FF; background: rgba(124,92,255,.18)}
.status-queued{border-color: rgba(255,204,102,.5); color:#FFE7B8; background: rgba(255,204,102,.18)}
.status-dead{border-color: rgba(255,77,109,.55); color:#FFD1DA; background: rgba(255,77,109,.28)}
.status-disabled{border-color: rgba(255,255,255,.25); color:var(--muted); background: rgba(255,255,255,.04)}
.status-never{border-color: rgba(255,255,255,.2); color:var(--muted-2); background: rgba(255,255,255,.02)}
.cron-table{margin-top:14px}
.cron-note{margin:8px 0 0; color:var(--muted); font-size:12px}
.cron-section{margin-top:18px}
.cron-interval-form{
  display:flex;
  align-items:center;
  gap:8px;
}
.cron-interval-form input{
  width:110px;
}
.cron-pagination{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(8,11,20,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:200;
}
.modal{
  width:min(520px, 100%);
  background: rgba(18,24,36,.98);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 25px 70px rgba(0,0,0,.5);
  padding:20px;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.modal-body{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.modal-list{
  display:grid;
  gap:8px;
  max-height:320px;
  overflow:auto;
  padding-right:4px;
}
