/* Samsung-inspired premium minimal theme (black/white + blue accent) */
:root{
  --accent:#1428A0;           /* Samsung blue accent */
  --accent-2:#0b1e73;
  --ink:#0b0d12;              /* near-black text */
  --muted:#5c6370;
  --bg:#ffffff;
  --bg-2:#f5f6f8;
  --border:#e6e8ee;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
  --radius: 18px;
  --radius-sm: 12px;
  --focus: 0 0 0 0.25rem rgba(20,40,160,.18);
}

html, body{
  background: var(--bg-2);
  color: var(--ink);
}

a{ color: var(--accent); }
a:hover{ color: var(--accent-2); }

/* Navbar – white, minimal, premium */
.samsung-navbar{
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0,0,0,.04);
}
.samsung-navbar .navbar-brand,
.samsung-navbar .nav-link{
  color: var(--ink) !important;
}
.samsung-navbar .nav-link:hover{ color: var(--accent) !important; }
.samsung-navbar .nav-link.active{ color: var(--accent) !important; font-weight: 600; }

.brand-icon{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,40,160,.18), rgba(0,0,0,.06));
  color: var(--ink);
}


/* Page headers */
.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 18px 0 18px;
}
.page-header h1{
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin:0;
}
.subtitle{
  color: var(--muted);
  margin-top: 6px;
}

/* Cards */
.card, .auth-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}
.card-header{
  background: transparent;
  border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn{
  border-radius: 999px;
  padding: .55rem 1.05rem;
  font-weight: 600;
}
.btn-primary{
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--focus) !important;
}
.btn-outline-primary{
  color: var(--ink) !important;
  border-color: var(--border) !important;
  background: #fff !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus{
  color: #fff !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: var(--focus) !important;
}

/* Inputs */
.form-control, .form-select{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ece6e6;
  padding: .6rem .9rem;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(20,40,160,.4);
  box-shadow: var(--focus);
}

/* Tables */
.table{
  color: var(--ink);
}
.table thead th{
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.table > :not(caption) > * > *{
  border-color: var(--border);
}

/* Toast / alerts */
.alert{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.alert-success{ background: rgba(16, 185, 129, .08); }
.alert-danger{ background: rgba(239, 68, 68, .08); }
.alert-warning{ background: rgba(245, 158, 11, .10); }
.alert-info{ background: rgba(20, 40, 160, .08); }

/* Auth page */
.auth-shell{ padding: 56px 0; }
.auth-hero{
  border-radius: var(--radius) 0 0 var(--radius);
  background: radial-gradient(1200px 400px at -10% 10%, rgba(20,40,160,.25), transparent 60%),
              linear-gradient(160deg, #0b0d12 0%, #111522 70%, #0b0d12 100%);
  color: #fff;
}
.auth-title{ font-weight: 800; letter-spacing: -0.02em; }
.auth-sub{ color: rgba(255,255,255,.75); }
.brand-pill{
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.brand-mark{
  width: 28px; height: 28px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
}


/* Metric cards */
.metric-card{
  position: relative;
  overflow: hidden;
}
.metric-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background: var(--border);
}
.metric-card .card-body{ position: relative; }
.metric-card .display-6, .metric-card .h1, .metric-card h2, .metric-card h3{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric-accent{ background: #fff; }
.metric-accent::before{ background: var(--accent); }
.metric-success::before{ background: rgba(16,185,129,1); }
.metric-info::before{ background: rgba(20,40,160,.65); }
.metric-warning::before{ background: rgba(245,158,11,1); }

/* Utility classes */
.is-hidden{ display: none !important; }

/* Notifications */
.notification-item{transition:all .2s ease;border-left:4px solid transparent;}
.notification-item.unread{background:#f7f8fb;border-left-color:var(--samsung-blue,#1428A0);} 
.notification-item:hover{background:#eef1f7;}
.notification-icon{width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:1.05rem;background:#f0f2f7;color:#111;}
.notification-icon.new_comment{background:#e8f0ff;color:var(--samsung-blue,#1428A0);} 
.notification-icon.status_change{background:#e9f7ef;color:#0f5132;} 
.notification-icon.new_report{background:#fff6e5;color:#8a6d00;} 
.notification-time{font-size:.85rem;color:#6c757d;}
.notification-badge{font-size:.7rem;padding:2px 8px;}
.scroll-150{ max-height: 150px; overflow-y: auto; }
.toast-layer{ z-index: 1055; }

.hdr-blue{ background: rgba(20,40,160,.10); }
.hdr-green{ background: rgba(16,185,129,.10); }
.hdr-orange{ background: rgba(249,115,22,.10); }
.hdr-yellow{ background: rgba(245,158,11,.12); }
.hdr-highlight{ background: rgba(0,0,0,.04); }



/* CSP-safe replacements for inline width/min-width attributes (admin/users) */
.col-select { width: 42px; }
.drawer-minwidth { min-width: 320px; }
.col-code-min { min-width: 140px; }
.col-actions-min { min-width: 170px; }


/* Navbar user dropdown */
.user-menu{
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: .35rem;
}
.user-menu__logout-btn{
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 10px;
}
.user-menu__logout-btn:hover,
.user-menu__logout-btn:focus{
  background: var(--bg-2);
  color: var(--accent);
}
.user-menu__logout-btn:active{
  background: rgba(20,40,160,.08);
  color: var(--accent-2);
}
