/* ═══════════════════════════════════════════════════════
   Safevent — Estil global
   ═══════════════════════════════════════════════════════ */

:root {
  --primary:   #1A5276;
  --accent:    #2E86C1;
  --green:     #1E8449;
  --orange:    #D35400;
  --red:       #C0392B;
  --gray:      #7F8C8D;
  --light:     #EBF5FB;
  --border:    #D5D8DC;
  --text:      #2C3E50;
  --bg:        #F4F6F8;
  --white:     #ffffff;
  --shadow:    0 2px 8px rgba(0,0,0,0.08);
  --radius:    10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 900;
  color: white;
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: #5DADE2; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-event-badge {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ─── PAGE HEADER ────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.page-sub {
  color: var(--gray);
  margin-top: 4px;
  font-size: 14px;
}
.event-chip {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.days-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* ─── STATS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  text-align: center;
}
.stat-blue   { border-top-color: var(--accent); }
.stat-green  { border-top-color: var(--green); }
.stat-orange { border-top-color: var(--orange); }
.stat-red    { border-top-color: var(--red); }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── SECTION TITLE ──────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ─── QUICK ACTIONS ──────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.action-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
  border: 1.5px solid transparent;
  display: block;
}
.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: var(--accent);
}
.action-disabled { opacity: .5; pointer-events: none; }
.action-icon  { font-size: 28px; margin-bottom: 8px; }
.action-label { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.action-desc  { font-size: 12px; color: var(--gray); }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 32px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-icon  { font-size: 52px; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.empty-desc  { color: var(--gray); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ─── CARD ───────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
}
.card-desc { color: var(--gray); font-size: 13px; margin-bottom: 16px; }
.card-info { background: #EBF5FB; border: 1px solid #AED6F1; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.btn:hover    { opacity: .88; }
.btn:active   { transform: scale(.97); }
.btn-primary  { background: var(--accent); color: white; }
.btn-success  { background: var(--green); color: white; }
.btn-danger   { background: var(--red); color: white; }
.btn-ghost    { background: var(--light); color: var(--primary); border: 1.5px solid var(--border); }
.btn-sm       { padding: 5px 12px; font-size: 12px; }

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ─── ALERTS ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.alert-error   { background: #FADBD8; color: var(--red); border: 1px solid #F1948A; }
.alert-success { background: #D5F5E3; color: var(--green); border: 1px solid #82E0AA; }
.alert-info    { background: var(--light); color: var(--accent); border: 1px solid #AED6F1; }

/* ─── TABLE ──────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  background: var(--primary);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: middle;
}
.table tr:hover td { background: var(--light); }

/* ─── BADGES ─────────────────────────────────────────── */
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}
.badge-green  { background: #D5F5E3; color: var(--green); }
.badge-orange { background: #FDEBD0; color: var(--orange); }
.badge-red    { background: #FADBD8; color: var(--red); }
.badge-blue   { background: var(--light); color: var(--accent); }
.badge-gray   { background: #EAECEE; color: var(--gray); }

/* ─── UPLOAD ZONE ────────────────────────────────────── */
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 16px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--light);
}
.upload-icon  { font-size: 48px; margin-bottom: 12px; }
.upload-text  { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.upload-sub   { color: var(--gray); font-size: 13px; }
.file-input   { display: none; }
.file-selected {
  background: var(--light);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ─── FORMS ──────────────────────────────────────────── */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  background: white;
  font-family: inherit;
}
.form-field textarea { height: 80px; resize: vertical; }
.form-field input:focus,
.form-field select:focus { outline: none; border-color: var(--accent); }

.select-inline {
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
}

/* ─── STEPS LIST ─────────────────────────────────────── */
.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 8px; line-height: 1.5; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--gray);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer a { color: var(--accent); text-decoration: none; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid, .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links { display: none; }
  .main-content { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid, .quick-actions {
    grid-template-columns: 1fr;
  }
}
