/* Colors */
:root{
  --brand-900:#0e1330; 
  --brand-800:#151e44; 
  --brand-700:#223066; 
  --brand-600:#2c3e80;
  --text-100:#eef2ff; 
  --text-700:#2a3a73; 
  --text-500:#5a6a95; 
  --muted-300:#a8b6d9;
  --border-300:#c9d3ee; 
  --accent-500:#7ab3ff;
  --radius:14px; 
  --shadow-lg:0 10px 30px rgba(0,0,0,.35);
}

/* ===== BASE ===== */
*,*::before,*::after{
  box-sizing:border-box
}

html,body{
  height:100%;
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif
}

img,svg,video{
  display:block;
  max-width:100%
}

a{
  color:var(--accent-500);
  font-weight:600;
  text-decoration:none
}

a:hover{
  text-decoration:underline
}

h1,h2,h3,p{
  margin:0 0 16px
}

/* ===== SHARED COMPONENTS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:8px;
  cursor:pointer
}

.btn-primary{
  background:var(--brand-700);
  color:#fff;
  padding:14px 16px;
  font-weight:700;
  font-size:15px;
  transition:background .2s
}

.btn-primary:hover{
  background:var(--brand-600)
}

.form-field{
  display:grid;
  gap:8px;
  font-size:14px
}

.input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border-300);
  border-radius:8px;
  font-size:15px;
  background:#fff
}

.input:focus{
  outline:none;
  border-color:var(--accent-500);
  box-shadow:0 0 0 3px rgba(122,179,255,.25)
}

/* ===== SMALL UTILITIES ===== */
.text-center{
  text-align:center
}

.mt-2{
  margin-top:8px
}

.mt-3{
  margin-top:12px
}

.mt-4{
  margin-top:16px
}

.mb-2{
  margin-bottom:8px
}

.mb-4{
  margin-bottom:16px
}

.flash-container{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:8px;
  width:min(480px,90%);
  z-index:1000;
}

.flash{
  padding:12px 16px;
  border-radius:8px;
  font-size:14px;
  color:#0f172a;
  background:#e2e8f0;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.flash-success{
  background:#d1fae5;
  color:#065f46;
}

.flash-error{
  background:#fee2e2;
  color:#991b1b;
}

.flash-warning{
  background:#fef9c3;
  color:#854d0e;
}

.app-header{
  position:sticky;
  top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 32px;
  background:#fff;
  border-bottom:1px solid rgba(15,23,42,.08);
  z-index:900;
}

.brand-mark{
  font-weight:700;
  font-size:18px;
  color:var(--brand-700);
}

.app-nav{
  display:flex;
  gap:18px;
  font-weight:600;
}

.app-nav a{
  color:var(--brand-700);
}

.error-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-card {
  max-width: 480px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.error-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.error-card h1 {
  margin-bottom: 0.75rem;
}

.error-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notice {
  transition: opacity 250ms ease, transform 250ms ease;
}

.notice.notice--hide {
  opacity: 0;
  transform: translateY(-6px);
}

.notice--hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 250ms ease;
}


/* --- Notification bell inline with .app-nav --- */
.app-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--brand-700);
}

.notif-btn:hover {
  opacity: 0.85;
}

.notif-badge {
  font-size: 12px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
}

/* Dropdown panel */
.notif-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 10px;
  z-index: 2000;
}

.notif-menu[hidden] { display: none; }

.notif-menu-header {
  font-weight: 700;
  color: var(--brand-700);
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 8px;
}

.notif-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
}

.notif-empty {
  padding: 10px 6px;
  color: rgba(15, 23, 42, 0.65);
}

/* Notification rows */
.notif-item {
  display: block;
  padding: 8px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.notif-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.notif-item--unread {
  background: rgba(15, 23, 42, 0.03);
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-700);
}

.notif-body {
  font-size: 12px;
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.70);
}
