:root{--bg:#f0f4f8;--card:#ffffff;--accent:#0d6efd;--muted:#6c757d}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#e9f0fb 0%,var(--bg) 100%);font-family:Inter,Segoe UI,Arial,sans-serif;color:#222}

/* Centering helper for auth pages */
.auth-container{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}
.card{width:100%;max-width:920px;background:var(--card);border-radius:12px;box-shadow:0 8px 30px rgba(13,40,80,0.08);padding:28px}

/* Narrow variant for auth pages */
.card.narrow{max-width:420px}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.logo{width:48px;height:48px;border-radius:8px;background:linear-gradient(135deg,var(--accent),#6610f2);display:flex;align-items:center;justify-content:center;color:white;font-weight:700}
h1{margin:0;font-size:20px}
.lead{margin:6px 0 18px;color:var(--muted);font-size:13px}
form{display:block}
label{display:block;font-size:13px;color:#444;margin-bottom:6px}
input[type="text"],input[type="email"],input[type="password"]{width:100%;padding:12px;border:1px solid #e6e9ee;border-radius:8px;margin-bottom:14px;font-size:14px}
.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
button{background:var(--accent);color:#fff;padding:10px 16px;border-radius:8px;border:0;cursor:pointer;font-weight:600}
.muted{color:var(--muted);font-size:13px}
#msg{margin-top:12px;font-size:14px}
.small{font-size:13px;color:var(--muted)}

/* Reports table */
table{border-collapse:collapse;width:100%;background:transparent}
th,td{border:1px solid #e6e9ee;padding:8px;text-align:left}
th{background:#fafafa}

@media (max-width:600px){
  .card{padding:18px}
}

/* App layout */
.app-layout aside a{display:block;padding:8px;border-radius:6px}
.app-layout aside a:hover{background:#f6f9ff;color:var(--accent)}
.app-layout main h2{margin-top:0}

/* Header */
.site-header{width:100%;background:#fff;border-bottom:1px solid #eee;padding:12px 20px;box-shadow:0 2px 6px rgba(0,0,0,0.03)}
.site-header .header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
.header-brand{display:flex;align-items:center;gap:12px}
.site-nav{display:flex;align-items:center;gap:12px}
.site-nav a{color:#333;text-decoration:none}

/* Small logo variant for header */
.logo--small{width:40px;height:40px;border-radius:8px}

/* Layout */
.app-layout{max-width:1200px;margin:22px auto;display:grid;grid-template-columns:180px 1fr;gap:20px}
.sidebar{background:#fff;border:1px solid #eee;border-radius:8px;padding:16px}
.sidebar ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.sidebar a{color:#333;text-decoration:none}
.main-content{background:#fff;border:1px solid #eee;border-radius:8px;padding:18px;min-height:400px}

/* Make the post card span full width of the main-content (without changing global .card) */
.main-content .post-fullcard{max-width:none;width:100%;border-radius:8px}

/* Report target content preview box */
#report-target-content{border:1px solid #e6e9ee;padding:12px;border-radius:8px;background:#fbfdff}

/* Avatar fallback (initials / icon) */
.avatar-fallback{display:flex;align-items:center;justify-content:center;background:#eef4ff;color:#14335a;width:48px;height:48px;border-radius:50%;font-weight:700;font-size:14px}

/* Author box styling for post header */
.author-box{border:1px solid #e6e9ee;background:#fbfdff;padding:10px;border-radius:10px}
.author-label{font-size:12px;color:#6c757d;margin-bottom:4px}
.author-box .btn{min-width:74px}

/* Modifier: layout without sidebar (single column) */
.app-layout.no-sidebar{grid-template-columns:1fr}
.app-layout.no-sidebar .main-content{padding:22px;min-width:0}

