/* ============================================
   RAPID 1923 — VOLUNTARIAT MANAGER
   Design system central — alb + vișiniu
   Sponsor: Powered by — IMAMED
   ============================================ */

:root {
  --rapid-visiniu: #6b0018;
  --rapid-visiniu-deschis: #8e1231;
  --rapid-visiniu-inchis: #4a0010;
  --rapid-alb: #ffffff;
  --rapid-bg: #f7f6f2;
  --rapid-text: #1f1720;
  --rapid-text-soft: #6e6167;
  --rapid-accent-light: #ffcdd2;
  --rapid-accent-soft: #f3e3e6;
  --rapid-line: #e6dfe1;
  --font-serif: 'Playfair Display', Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.font-serif { font-family: var(--font-serif); }

/* ============ ICONS (Bootstrap Icons) ============ */

.bi { vertical-align: middle; color: var(--rapid-visiniu); }

/* Icons inside a colored badge or button keep that container's own
   color (green/red/white/etc.) instead of the default burgundy. */
.badge .bi,
.status-badge .bi,
button .bi,
.btn .bi { color: inherit; }

.status-dot { font-size: 10px; }
.status-dot.activ { color: #28a745; }
.status-dot.viitor { color: #17a2b8; }
.status-dot.trecut { color: #adb5bd; }

body {
  font-family: Inter, sans-serif;
  background: var(--rapid-bg);
  color: var(--rapid-text);
}

/* ============ TOPBAR / NAVBAR ============ */

.topbar {
  background: var(--rapid-alb);
  border-bottom: 1px solid var(--rapid-line);
  padding: 10px 18px;
}

.topbar .navbar-brand {
  color: var(--rapid-text) !important;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar .brand-sub {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--rapid-text-soft);
}

.topbar .nav-link {
  color: var(--rapid-text-soft) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px !important;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.topbar .nav-link:hover {
  color: var(--rapid-text) !important;
  background: var(--rapid-bg);
}

.topbar .nav-link.active {
  color: var(--rapid-visiniu) !important;
  background: var(--rapid-accent-soft);
}

.navbar-toggler {
  border-color: var(--rapid-line);
}

.navbar-notif-mobile .nav-link {
  color: var(--rapid-text) !important;
  font-size: 20px;
  padding: 4px 6px !important;
}

/* ============ LOGO PROGRAM (imagine, in loc de buline) ============ */

.brand-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ============ MAIN LAYOUT ============ */

.main {
  padding: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--rapid-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ============ BUTOANE ============ */

.btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-right: 8px;
}

.btn-primary {
  background: var(--rapid-visiniu);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rapid-visiniu-deschis);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #ddd;
  color: #333;
}

.btn-danger {
  background: #f8d7da;
  color: #721c24;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #218838;
}
/* ============ ALERTE ============ */

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-danger  { background: #f8d7da; color: #721c24; }
.alert-info    { background: #d1ecf1; color: #0c5460; }

/* ============ BADGES (rol/departament) ============ */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin       { background: #ffd7dd; color: var(--rapid-visiniu); }
.coordonator { background: #fff3cd; color: #856404; }
.voluntar    { background: #d4edda; color: #155724; }
.dept        { background: #e8f0fe; color: #1a56db; }

/* ============ NOTIFICĂRI (clopoțel navbar) ============ */

.notif-badge {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--rapid-visiniu);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-dropdown {
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
}

.notif-dropdown .dropdown-header {
  font-weight: 800;
  color: var(--rapid-text);
  font-size: 23px;
}

.notif-dropdown .dropdown-item-text {
  font-size: 13px;
}

.notif-item {
  white-space: normal;
  border-left: 3px solid transparent;
}

.notif-item.unread {
  border-left: 3px solid var(--rapid-visiniu);
  background: var(--rapid-accent-soft);
}

.notif-time {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

.ok       { background: #d4edda; color: #155724; }
.absent   { background: #f8d7da; color: #721c24; }
.intarziat{ background: #fff3cd; color: #856404; }
.vin      { background: #d4edda; color: #155724; }
.nu_vin   { background: #f8d7da; color: #721c24; }
.poate    { background: #fff3cd; color: #856404; }

/* ============ WELCOME BADGE (dashboard — rol pe fond visiniu) ============ */

.welcome-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .main { padding: 16px; }
  .topbar .navbar-brand { font-size: 16px; }
}