/* Volunteer portal — unified with the site theme (main.css tokens).
   No body/font/header overrides here: the page inherits the black base, Poppins
   type, sticky .site-header, and pill .btn from main.css. This file only styles
   the portal-specific bits (cards, shifts, tabs, forms) using the same palette:
   cyan = highlight/active, pink = links/primary actions, purple = training. */

/* ===== Buttons: pill style matching main.css .btn ===== */
.btn {
  display: inline-block; margin-top: 0; padding: 0.7rem 1.7rem; border: none; cursor: pointer;
  background: var(--pink-deep); color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1.1; border-radius: var(--pill-radius);
  transition: filter 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn-primary { background: var(--pink-deep); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: var(--white); filter: none; }
.btn-danger { background: #d23b3b; }
.btn-shadow { background: var(--purple); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 1.4rem 64px; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none; border-radius: 10px 10px 0 0; cursor: pointer; color: var(--muted);
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 500; transition: all 0.15s;
}
.tab:hover { color: var(--white); }
.tab.active { background: rgba(255,82,168,0.14); color: var(--pink); border-color: rgba(255,82,168,0.55); }
/* Auth tabs: equal-width segmented toggle that sits right above the form card */
#loginTab, #signupTab { flex: 1; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-title { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--white); }
.card-subtitle { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ===== Shift / task cards ===== */
.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.shift-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px; transition: all 0.15s; min-width: 240px; flex: 1;
}
.shift-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(46,228,234,0.35); }
.shift-card.filled { opacity: 0.55; }
.shift-card.mine { border-color: var(--cyan); background: rgba(46,228,234,0.1); }
.shift-card.training { border-color: var(--purple); background: rgba(106,63,181,0.18); }

.shift-date { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.shift-time { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.shift-role { color: var(--cyan); font-size: 0.9rem; font-weight: 500; margin-top: 8px; }
.shift-event { color: var(--cyan); font-size: 0.8rem; }
.shift-desc { font-size: 0.78rem; color: #9a9aa6; margin: 6px 0 8px; line-height: 1.45; }
.shift-status { font-size: 0.75rem; margin-top: 8px; padding: 3px 9px; border-radius: 999px; display: inline-block; font-weight: 600; }
.shift-status.open { background: rgba(46,228,234,0.18); color: var(--cyan); }
.shift-status.pending { background: rgba(245,158,11,0.18); color: #f5a623; }
.shift-status.filled { background: rgba(150,150,160,0.18); color: #aab; }
.shift-status.mine, .shift-status.confirmed { background: rgba(255,82,168,0.18); color: var(--pink); }

.volunteer-name { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.role-shifts { display: flex; gap: 10px; flex-wrap: wrap; }

.task-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
.task-card:hover { background: rgba(255,255,255,0.06); }
.task-title { font-weight: 600; color: var(--white); font-size: 1rem; }
.task-desc { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.task-prereq { color: #f5a623; font-size: 0.8rem; margin-top: 8px; font-style: italic; }
.task-hours { color: var(--cyan); font-size: 0.85rem; margin-top: 4px; }
.task-deadline { color: #ff7676; font-size: 0.8rem; }

/* ===== Auth forms ===== */
.login-form, .signup-form { max-width: 420px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid #2e2e36; border-radius: 8px;
  background: #121216; color: var(--white); font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--pink); }

/* Theme every portal <select> to match the dark inputs (was falling back to the
   white native control) and give it a consistent custom caret. */
.container select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23a0a0b0' d='M0 0h12L6 7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}

.empty-state { text-align: center; padding: 40px; color: var(--muted); }

/* ===== Section + filters ===== */
.section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--white);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.date-section { margin-bottom: 28px; }
.date-header {
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.role-row { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.role-name { font-size: 0.95rem; font-weight: 600; color: var(--cyan); }
.role-badge { font-size: 0.7rem; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.role-badge.approval { background: rgba(245,158,11,0.18); color: #f5a623; }
.role-badge.approved, .role-badge.open { background: rgba(46,228,234,0.18); color: var(--cyan); }

.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-btn {
  padding: 10px 18px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--pill-radius);
  background: rgba(255,255,255,0.04); color: var(--muted); font-family: 'Poppins', sans-serif;
  font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.cat-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.cat-btn.active { background: rgba(255,82,168,0.14); color: var(--pink); border-color: rgba(255,82,168,0.55); }

/* ===== Alerts + info ===== */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(89,243,222,0.14); color: var(--teal); border: 1px solid rgba(89,243,222,0.35); }
.alert-error { background: rgba(255,118,118,0.14); color: #ff8a8a; border: 1px solid rgba(255,118,118,0.35); }
.alert-info { background: rgba(46,228,234,0.1); color: #9fecf0; border: 1px solid rgba(46,228,234,0.28); }
.alert-info a { color: var(--pink); }

.info-box {
  background: rgba(46,228,234,0.08); border: 1px solid rgba(46,228,234,0.22);
  border-radius: 10px; padding: 16px; margin-bottom: 20px; font-size: 0.9rem; color: #cdeff1; line-height: 1.6;
}
.info-box strong { color: var(--cyan); }

/* ===== Auth status bar level badge (vol-auth-bar lives in main.css) ===== */
.level-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(46,228,234,0.14); color: var(--cyan); border: 1px solid rgba(46,228,234,0.4);
}
.level-badge.admin { background: rgba(255,118,118,0.15); color: #ff8a8a; border-color: rgba(255,118,118,0.4); }
.level-badge.dj, .level-badge.musician { background: rgba(255,82,168,0.15); color: var(--pink); border-color: rgba(255,82,168,0.4); }

/* ===== Onboarding checklist ===== */
.checklist-card { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.checklist-card h3 { color: #f5a623; font-size: 1rem; margin-bottom: 10px; }
.checklist-card label { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--white); font-size: 0.9rem; cursor: pointer; }
.checklist-card input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; }

/* ===== Volunteer intro (logged-out landing) ===== */
.volunteer-intro { max-width: 720px; margin: 24px auto 0; }
.volunteer-roles { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .volunteer-roles { grid-template-columns: repeat(2, 1fr); } }
.role-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.role-card strong { color: var(--white); font-size: 0.9rem; }
.role-card span { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .container { padding: 14px 1rem 56px; }
  .info-box { padding: 12px; font-size: 0.82rem; }
  .category-filters { gap: 6px; }
  .cat-btn { padding: 8px 14px; font-size: 0.82rem; flex: 1; min-width: calc(50% - 6px); text-align: center; }
  .date-header { font-size: 1rem; margin-bottom: 10px; }
  .role-row { margin: 10px 0 6px; }
  .role-name { font-size: 0.88rem; }
  .role-shifts { flex-direction: column; gap: 8px; }
  .shift-card { min-width: unset; width: 100%; padding: 12px; }
  .shift-time { font-size: 0.9rem; color: var(--white); font-weight: 500; }
  .shift-desc { font-size: 0.76rem; }
  .shift-grid { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .login-form, .signup-form { margin: 20px auto; }
  .form-group input, .form-group textarea, .form-group select { padding: 14px 12px; font-size: 16px; } /* prevents iOS zoom */
  .btn { padding: 0.75rem 1.5rem; }
  .btn-sm { padding: 0.5rem 1rem; }
  .section-title { font-size: 1.05rem; }
  .task-card { padding: 12px; }
}

/* ===== Profile: onboarding requirement rows ===== */
.req-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.req-row:last-child { border-bottom: none; }
.req-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--cyan); }
.req-check.done { background: rgba(46,228,234,0.15); border-color: var(--cyan); }
.req-link { flex: 1; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,82,168,0.3); }
.req-link:hover { color: var(--pink); }

/* ===== Admin section ===== */
.admin-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-subtabs .badge {
  display: none; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--pink-deep); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
@media (min-width: 620px) { .admin-grid { grid-template-columns: repeat(4, 1fr); } }
.chk { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 0.9rem; }
.chk input { accent-color: var(--cyan); width: 16px; height: 16px; }

.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }
.admin-row:last-child { border-bottom: none; }

.admin-task { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-task:last-child { border-bottom: none; }
.admin-task-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-task-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.admin-task-actions select, .admin-vol select {
  padding: 7px 10px; border-radius: 8px; background: #121216; color: var(--white);
  border: 1px solid #2e2e36; font-family: inherit; font-size: 0.85rem;
}

.admin-vol { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }
.admin-vol:last-child { border-bottom: none; }
.admin-vol-main { min-width: 0; flex: 1; }

.admin-msg { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-msg:last-child { border-bottom: none; }
.admin-msg.unread { border-left: 3px solid var(--pink); padding-left: 12px; }
.admin-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }

.task-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Radio shows / schedule ===== */
.show-logo-preview { margin: 4px 0 12px; }
.show-logo-img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #111; flex: 0 0 auto; }
.show-logo-ph { width: 56px; height: 56px; border-radius: 10px; background: rgba(255,255,255,0.06); flex: 0 0 auto; }
.show-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.show-row:last-child { border-bottom: none; }
.show-row-body { min-width: 0; flex: 1; }
.show-row-title { font-weight: 600; color: var(--white); font-size: 1rem; }
.admin-vol-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== Roles (admin) ===== */
.role-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(46,228,234,0.12); color: var(--cyan); border: 1px solid rgba(46,228,234,0.4); border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; }
.role-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; opacity: 0.7; }
.role-chip button:hover { opacity: 1; }
.vol-roles { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.vol-roles .role-add { padding: 4px 8px; border-radius: 8px; background: #121216; color: var(--muted); border: 1px solid #2e2e36; font-family: inherit; font-size: 0.78rem; }

/* Inline confirm (seamless remove — replaces the native popup) */
.confirm-inline { display: inline-flex; align-items: center; gap: 6px; }
.confirm-inline .confirm-q { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
