/* socialmediamanager/public/assets/css/style.css */
:root{
  --bg:#070b14; --panel:#0b1220; --text:#e8eefc; --muted:#94a3b8;
  --line:rgba(148,163,184,.18); --accent:#4f8cff; --danger:#ff4f6d;
  --shadow: 0 18px 60px rgba(0,0,0,.45); --radius:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--sans); color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(79,140,255,.12), transparent 60%),
              radial-gradient(1200px 800px at 90% 20%, rgba(255,79,109,.08), transparent 65%),
              var(--bg);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-bottom:1px solid var(--line);
  background: rgba(11,18,32,.75); backdrop-filter: blur(12px);
  position:sticky; top:0; z-index:10;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(79,140,255,.9), rgba(255,79,109,.55));
  font-weight:800; box-shadow: var(--shadow);
}
.title{font-weight:750}
.subtitle{font-size:.88rem; color:var(--muted)}
.actions{display:flex; gap:10px; align-items:center}
.layout{display:flex; min-height:calc(100vh - 72px)}
.sidebar{width:260px; padding:14px; border-right:1px solid var(--line)}
.navitem{
  width:100%; text-align:left; padding:12px 12px; border-radius:14px;
  border:1px solid transparent; background:transparent; color:var(--text);
  cursor:pointer; margin-bottom:10px;
}
.navitem:hover{background:rgba(255,255,255,.03); border-color:rgba(255,255,255,.06)}
.navitem.active{background:rgba(79,140,255,.12); border-color:rgba(79,140,255,.22)}
.content{flex:1; padding:18px; max-width:1180px; width:100%}
.tab{display:none} .tab.active{display:block}
.row{display:flex; align-items:center; gap:12px}
.spacer{flex:1}
h2{margin:0 0 10px 0; font-size:1.3rem}
.btn{
  background: linear-gradient(135deg, rgba(79,140,255,.95), rgba(79,140,255,.55));
  border:1px solid rgba(79,140,255,.35); color:white;
  padding:10px 12px; border-radius:14px; cursor:pointer; font-weight:650;
}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); color:var(--text)}
.btn.danger{background:rgba(255,79,109,.12); border-color:rgba(255,79,109,.35); color:#ffd3dc}
.input{
  width:100%; background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10); color:var(--text);
  border-radius:14px; padding:10px 12px; outline:none;
}
.input:focus{border-color:rgba(79,140,255,.5); box-shadow:0 0 0 4px rgba(79,140,255,.12)}
.textarea{resize:vertical; min-height:110px}
.label{display:block; margin:10px 0 6px 0; color:var(--muted); font-size:.9rem}
.filters{display:flex; gap:10px; align-items:center; margin:10px 0 14px 0}
.filters .input{max-width:360px}
.list{display:grid; grid-template-columns: 1fr; gap:12px}
.card{
  background:rgba(11,18,32,.7); border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); box-shadow: var(--shadow); padding:14px;
}
.item{
  background:rgba(11,18,32,.7); border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding:12px; display:flex; gap:12px; align-items:flex-start;
}
.item h3{margin:0 0 4px 0; font-size:1.05rem}
.meta{color:var(--muted); font-size:.9rem}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted); font-size:.85rem;
}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.codeblock{
  display:block;
  font-family:var(--mono);
  font-size:.9rem;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px 12px;
  overflow:auto;
}
@media (max-width: 880px){
  .layout{flex-direction:column}
  .sidebar{width:auto; display:flex; gap:10px; overflow:auto}
  .navitem{white-space:nowrap; margin-bottom:0}
  .filters{flex-direction:column; align-items:stretch}
  .grid{grid-template-columns:1fr}
}
.modal{position:fixed; inset:0; background:rgba(0,0,0,.55); display:grid; place-items:center; padding:16px; z-index:50}
.modal.hidden{display:none}
.modal-card{
  width:min(980px, 100%); max-height: 88vh; overflow:auto;
  background:rgba(11,18,32,.92); border:1px solid rgba(255,255,255,.10);
  border-radius: 22px; box-shadow: var(--shadow);
}
.modal-head,.modal-foot{
  padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:12px;
}
.modal-foot{border-top:1px solid rgba(255,255,255,.08); border-bottom:none}
.modal-title{font-weight:800}
.modal-body{padding:14px}

/* JacAI chat */
.chat{max-height:360px; overflow:auto; display:flex; flex-direction:column; gap:10px; padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(0,0,0,.12)}
.chat .msg{padding:10px 12px; border-radius:12px; line-height:1.35; white-space:pre-wrap}
.chat .me{align-self:flex-end; background:rgba(255,255,255,.10)}
.chat .ai{align-self:flex-start; background:rgba(0,0,0,.18)}
