/* =======================
   INNLINK UI THEME
======================= */

:root{
  /* Brand (Innlink blue) */
  --brand-950:#070b14;
  --brand-900:#0b1220;
  --brand-850:#0f172a;
  --brand-800:#111c33;
  --brand-700:#1e2a44;

  /* Accent blues */
  --accent-700:#1d4ed8;
  --accent-600:#2563eb;
  --accent-500:#3b82f6;
  --accent-100:#dbeafe;

  /* Neutral UI */
  --bg:#f6f8fc;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --border:rgba(15,23,42,.10);

  /* Text */
  --text:#0f172a;
  --muted:#64748b;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15,23,42,.05);
  --shadow:    0 10px 26px rgba(15,23,42,.07);

  /* Sizing */
  --radius:16px;
  --tap:54px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
  font-size: 18px;
}

/* Shell */
.app-shell{
  display:grid;
  grid-template-columns: 280px 1fr;
  min-height:100vh;
}

.main{
  display:flex;
  flex-direction:column;
}

.content{
  padding: 28px;
}

/* Cards */
.card, .panel, .table-wrap, .widget, .box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Sidebar */
.sidebar{
  background: linear-gradient(180deg, var(--brand-850) 0%, var(--brand-900) 100%);
  color:#fff;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  border-right: 1px solid rgba(255,255,255,.06);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:12px;
  object-fit:contain;
  background: rgba(255,255,255,.07);
  padding:8px;
}

.brand-name{ font-weight:900; letter-spacing:.3px; font-size:14px; }
.brand-sub{ font-size:11px; color: rgba(255,255,255,.70); margin-top:2px; }

.nav-list{
  padding:14px 6px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight:800;
  border: 1px solid transparent;
}

.nav-item:hover{
  background: rgba(255,255,255,.06);
}

.nav-item.active{
  background: rgba(59,130,246,.16);
  border-color: rgba(59,130,246,.22);
  color:#fff;
}

.sidebar-footer{
  margin-top:auto;
  padding:10px 6px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* Topbar */
.topbar{
  height:74px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 26px;
}

.topbar-logo{ height:34px; object-fit:contain; }

.user-pill{
  display:flex;
  align-items:center;
  gap:10px;
}
.avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e2e8f0;
  font-weight:900;
}
.user-name{ font-weight:900; line-height:1; }
.user-role{ color:var(--muted); font-size:12px; margin-top:2px; }

/* Page headers */
.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.h1{ font-size:28px; font-weight:950; margin:0; }
.sub{ color:var(--muted); margin-top:4px; font-weight:650; }

.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 28px 0 18px;
}
.page-title{ margin:0; font-size: 1.8rem; font-weight: 900; }
.page-subtitle{ margin-top:6px; opacity:.7; font-size: .95rem; }

/* --- Buttons + ticket actions (NORMAL, not print) --- */
.ticket-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.btn{
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid var(--border);
  background:#fff;
  color: var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
}

.btn-ghost{
  border-color: rgba(15,23,42,.14);
  background:#fff;
}

.btn-primary{
  background: var(--accent-600);
  border-color: rgba(37,99,235,.35);
  color:#fff;
}

.btn-secondary{
  background: var(--brand-850);
  border-color: transparent;
  color:#fff;
}

.btn-danger{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}

.btn-primary-lg{
  background:#1f6fff;
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-primary-lg:hover{ filter: brightness(1.05); }

.btn-green{
  background: var(--accent-600);
  border: 1px solid rgba(37,99,235,.28);
  color:#fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight:900;
  box-shadow: var(--shadow-sm);
}
.btn-green:hover{ filter: brightness(0.97); }

/* Tables */
.table-wrap{
  overflow:auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-clean{
  width:100%;
  border-collapse: collapse;
  min-width: 980px; /* allows horizontal scroll on tablets */
}

.table-clean thead th{
  text-align:left;
  font-size:.9rem;
  font-weight:950;
  color: var(--muted);
  padding: 12px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-clean tbody td{
  padding: 13px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  vertical-align: middle;
  font-size: 14px;
}

.table-clean tbody tr{
  cursor: pointer;
}
.table-clean tbody tr:hover{
  background:#eef2ff;

}

.num{
  text-align:right;
  font-variant-numeric: tabular-nums;
}

.muted{ opacity:.75; }

.empty{
  padding: 18px;
  opacity:.8;
}

.ticket-link,
a.link{
  color: var(--accent-600);
  text-decoration:none;
  font-weight:900;
}
.ticket-link:hover,
a.link:hover{
  text-decoration: underline;
}

/* Search */
.search-input{
  flex: 1;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.search-input::placeholder{ color: rgba(100,116,139,.9); opacity:.75; }

/* Forms */
.form-label{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
.form-control, .form-select{
  width:100% !important;
  display:block;
  min-height: var(--tap);
  border-radius: 14px;
  font-size: 18px;
}

.form-check-input{
  width: 26px;
  height: 26px;
  transform: translateY(2px);
}

.form-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.form-span-2{ grid-column: span 2; }

.form-group{
  background: var(--surface-2);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-help{
  opacity:.65;
  font-weight:750;
  font-size:12px;
  margin-top:6px;
}
.form-error{
  color:#b91c1c;
  font-weight:900;
  margin-top:8px;
  font-size:12px;
}

/* Tablet friendliness */
@media (max-width: 900px){
  .page-header{ align-items:flex-start; flex-direction:column; }
  .btn-primary-lg{ width: 100%; justify-content:center; }
  .card-toolbar{ flex-direction:column; align-items:stretch; }
  .search-input{ max-width: none; }
}
@media (max-width: 980px){
  .form-grid-2{ grid-template-columns:1fr; }
  .form-span-2{ grid-column:auto; }
}

/* =======================
   SCALE / Ticket helpers
======================= */

.scale-section{ margin-top: 32px; }
.scale-row{
  display:flex;
  align-items:center;
  gap:36px;
  margin-top:16px;
}

.scale-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.scale-digits{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 3rem;
  letter-spacing: 0.35rem;
  color: #eaf2ff;
  background: #0a1220;
  padding: 20px 32px;
  border-radius: 14px;
  min-width: 260px;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,.12);
}

.helper{ opacity:.8; font-size: 14px; }

.sticky-actions{
  position: sticky;
  bottom: 0;
  background: rgba(7,12,24,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  border-radius: 14px;
}

/* =======================
   AUTH / LOGIN (Modern)
======================= */

.auth-body{
  min-height:100vh;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #060a14;
  padding: 22px;
  position: relative;
  overflow:hidden;
}

/* animated gradient behind everything */
.auth-bg{
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(closest-side, rgba(37,99,235,.20), transparent 60%),
    linear-gradient(135deg, #0f172a, #0b1220);
  animation: authFlow 16s ease-in-out infinite alternate;
  filter: saturate(1.15);
}
@keyframes authFlow{
  0%   { transform: translate3d(-2%, -2%, 0) scale(1.02); }
  100% { transform: translate3d( 2%,  2%, 0) scale(1.08); }
}

.auth-wrap{
  width:100%;
  max-width: 520px;
  position:relative;
  z-index: 2;
}

.auth-card{
  position:relative;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 50px 120px rgba(0,0,0,.45);
  overflow:hidden;
}

/* watermark */
.auth-card::before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image: url("/static/tickets/img/ICL.png");
  background-repeat:no-repeat;
  background-position: center;
  background-size: 380px;
  opacity: .055;
  transform: rotate(-8deg);
  pointer-events:none;
}

.auth-brand{
  text-align:center;
  margin-bottom: 26px;
  position:relative;
  z-index: 2;
}

.auth-logo{
  width: 140px;   /* smaller + controlled */
  max-width: 70%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  display:block;
}

.auth-title{
  margin:0;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: .6px;
}

.auth-sub{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.auth-form{
  position:relative;
  z-index: 2;
}

.auth-form .form-row{
  margin-bottom: 16px;
}

.auth-form label{
  display:block;
  font-weight: 900;
  margin-bottom: 7px;
}

.auth-form input[type="text"],
.auth-form input[type="password"]{
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  padding: 12px 14px;
  font-size: 16px;
  background:#fff;
  outline:none;
}

.auth-form input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.auth-btn{
  width:100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 950;
}

.auth-error{
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  margin: 0 0 14px;
}

.auth-foot{
  margin-top: 18px;
  text-align:center;
  color: rgba(100,116,139,.85);
  font-weight: 800;
  font-size: 12px;
  position:relative;
  z-index:2;
}

/* =======================
   PRINT
======================= */
@media print {
  /* Hide chrome */
  .sidebar, .topbar, .no-print { display: none !important; }

  /* Break app layout */
  .app-shell, .main, .content { display:block !important; width:100% !important; max-width:none !important; }
  .content { padding:0 !important; margin:0 !important; }
  html, body { background:#fff !important; margin:0 !important; padding:0 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  @page { margin: 0.45in; }

  a[href]:after{ content:"" !important; }
}

/* ===== User menu dropdown ===== */
.user-menu{
  position: relative;
}

.user-pill-btn{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.9);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15,23,42,.07);
}
.user-pill-btn:hover{ filter: brightness(0.99); }

.user-meta{ display:flex; flex-direction:column; align-items:flex-start; }
.chev{
  width: 18px;
  height: 18px;
  opacity: .75;
  margin-left: 8px;
}

.user-menu .menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  padding: 10px;
  display: none;
  z-index: 50;
}

.user-menu.open .menu{ display:block; }
.user-menu.open .chev{ transform: rotate(180deg); }

.menu-head{
  padding: 10px 10px 12px;
}
.menu-head-name{
  font-weight: 900;
  color: var(--text);
}
.menu-head-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.menu-item{
  display:flex;
  align-items:center;
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  border: 1px solid transparent;
  background: transparent;
}
.menu-item:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.10);
}
.menu-item.danger{
  color: #b91c1c;
}
.menu-item.danger:hover{
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.12);
}

.menu-sep{
  height: 1px;
  background: rgba(15,23,42,.10);
  margin: 8px 6px;
}

.menu-form{ margin: 0; }
.menu-form button{
  cursor: pointer;
  text-align: left;
  border: 0;
}

/* =========================
   DASHBOARD PATCH (override old styles)
   Put this at the END of ui.css
========================= */

.dashboard-wrap .card,
.dashboard-wrap .panel,
.dashboard-wrap .widget,
.dashboard-wrap .box{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.dashboard-wrap .card + .card{
  margin-top: 14px;
}

/* Make "Today’s Overview" stat lines look like real metric cards */
.dashboard-wrap .stats,
.dashboard-wrap .kpi-list,
.dashboard-wrap .overview{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .dashboard-wrap .stats,
  .dashboard-wrap .kpi-list,
  .dashboard-wrap .overview{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px){
  .dashboard-wrap .stats,
  .dashboard-wrap .kpi-list,
  .dashboard-wrap .overview{
    grid-template-columns: 1fr;
  }
}

/* If the dashboard uses list-group rows, convert them visually */
.dashboard-wrap .list-group,
.dashboard-wrap .list-group-item{
  border: 0 !important;
  background: transparent !important;
}

.dashboard-wrap .list-group-item{
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: 16px !important;
  padding: 14px 14px !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  margin-bottom: 12px !important;
}

/* Make the value large + label muted */
.dashboard-wrap .stat-value,
.dashboard-wrap .kpi-value{
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  color: var(--text);
}

.dashboard-wrap .stat-label,
.dashboard-wrap .kpi-label{
  margin-top: 6px;
  font-weight: 750;
  color: var(--muted);
}

/* Prevent emoji/icons from misaligning */
.dashboard-wrap .emoji,
.dashboard-wrap .stat-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.10);
}

/* Tables in dashboard should match theme */
.dashboard-wrap table{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  overflow: hidden;
}

.sidebar-logout { margin-top: 14px; }
.sidebar-logout .nav-item { width: 100%; justify-content: center; }

.nav-logout{
  background: rgba(220,38,38,.14);
  border: 1px solid rgba(220,38,38,.22);
  color:#fff;
  font-weight:900;
}
.nav-logout:hover{
  background: rgba(220,38,38,.22);
  border-color: rgba(220,38,38,.28);
}

/* ===== User menu (top right) ===== */
.user-menu{
  position: relative;
}

.user-pill{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-sm);
}

.user-pill-btn{
  cursor:pointer;
  user-select:none;
}

.user-pill-btn:hover{
  filter: brightness(0.99);
}

.user-meta{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.1; }
.user-name{ font-weight: 900; }
.user-role{ font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }

.chev{ width:18px; height:18px; color: rgba(15,23,42,.70); }

.user-menu .menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
  overflow:hidden;
  display:none;
  z-index: 50;
}

.user-menu.open .menu{ display:block; }

.menu-head{
  padding: 14px 14px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.menu-head-name{ font-weight: 900; }
.menu-head-sub{ margin-top:4px; font-size: 12px; color: var(--muted); font-weight: 700; }

.menu-item{
  display:block;
  padding: 11px 14px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  border: 0;
  width: 100%;
  text-align:left;
  background: transparent;
  cursor:pointer;
}

.menu-item:hover{
  background: rgba(37,99,235,.06);
}

.menu-sep{
  height: 1px;
  background: rgba(15,23,42,.08);
  margin: 6px 0;
}

.menu-item.danger{
  color:#b91c1c;
}
.menu-item.danger:hover{
  background: rgba(220,38,38,.08);
}

.menu-form{ margin:0; }

/* ===== Dashboard/theme cleanup patch (safe overrides) ===== */

/* Make card-pad usable both as wrapper or on same element (defensive) */
.card-pad{
  padding: 16px;
}

/* table-wrap should be the card container for tables */
.table-wrap{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* remove accidental "double card" effect when table-wrap is inside a card */
.card .table-wrap{
  box-shadow: none;
  border: none;
  border-radius: 0;
}

/* clean empty state */
.empty{
  padding: 16px;
  color: var(--muted);
  font-weight: 700;
}

/* links: ensure ticket-link always visible */
.ticket-link{
  color: var(--accent-600);
  font-weight: 800;
  text-decoration: none;
}
.ticket-link:hover{ text-decoration: underline; }

/* old .link was pointing to undefined --green2; make it sane */
.link{
  color: var(--accent-600);
  font-weight: 800;
  text-decoration: none;
}
.link:hover{ text-decoration: underline; }

/* clickable rows */
.row-link{ cursor: pointer; }

/* Fix metric layout if it ever collapses */
.metric{ gap: 12px; }

/* =======================
   DASHBOARD NORMALIZATION
   (put at bottom of ui.css)
======================= */

.dash-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin: 16px 0 22px;
}

@media (max-width: 1200px){
  .dash-stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px){
  .dash-stats{ grid-template-columns: 1fr; }
}

.metric{
  display:flex;
  align-items:center;
  gap:12px;
}

.metric-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  background: rgba(37,99,235,.10);
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
}

.metric-value{
  font-size:28px;
  font-weight:900;
  line-height:1;
}

.metric-label{
  color: var(--muted);
  margin-top:4px;
  font-weight:700;
}

.dash-main{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:16px;
  align-items:start;
}

@media (max-width: 1100px){
  .dash-main{ grid-template-columns: 1fr; }
}

.dash-cardhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.dash-title{
  font-weight:900;
  font-size:18px;
}

.dash-quick{
  color: var(--muted);
  font-weight:700;
  line-height:2;
}
/* ===== Notifications Bell ===== */
.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.notif{
  position:relative;
}

.notif-btn{
  position:relative;
  height:44px;
  width:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  display:grid;
  place-items:center;
  cursor:pointer;
}

.notif-btn:hover{
  background:#fff;
}

.notif-icon{
  width:20px;
  height:20px;
  color: rgba(15,23,42,.75);
}

.notif-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background: #dc2626;
  color:#fff;
  font-size:12px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
}

.notif-panel{
  position:absolute;
  right:0;
  top:52px;
  width:360px;
  max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index:50;
}

.notif.open .notif-panel{ display:block; }

.notif-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  background: var(--surface-2);
}

.notif-title{
  font-weight:900;
  font-size:14px;
}

.notif-clear{
  border:none;
  background:transparent;
  font-weight:800;
  color: var(--accent-600);
  cursor:pointer;
}

.notif-list{
  max-height: 360px;
  overflow:auto;
}

.notif-item{
  display:grid;
  grid-template-columns: 10px 1fr auto auto;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(15,23,42,.06);
  align-items:start;
}

.notif-item:last-child{ border-bottom:none; }

.notif-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:4px;
  background: rgba(100,116,139,.4);
}

.notif-info .notif-dot{ background: rgba(59,130,246,.75); }
.notif-success .notif-dot{ background: rgba(34,197,94,.75); }
.notif-warning .notif-dot{ background: rgba(245,158,11,.85); }
.notif-danger .notif-dot{ background: rgba(220,38,38,.85); }

.notif-item-title{
  font-weight:900;
  font-size:13px;
  line-height:1.1;
}

.notif-item-msg{
  margin-top:4px;
  color: rgba(100,116,139,.9);
  font-weight:650;
  font-size:12px;
}

.notif-item-meta{
  margin-top:6px;
  font-size:11px;
  color: rgba(100,116,139,.9);
  font-weight:700;
}

.notif-read-form{
  margin:0;
}

.notif-read{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  border-radius:10px;
  height:30px;
  width:30px;
  cursor:pointer;
  font-weight:900;
  color: rgba(15,23,42,.65);
}

.notif-link{
  align-self:center;
  font-weight:900;
  color: var(--accent-600);
  text-decoration:none;
  font-size:12px;
}

.notif-empty{
  padding:16px;
  color: rgba(100,116,139,.9);
  font-weight:800;
}