/* Volunteer Page — Filter Toolbar */
.volunteer-filter-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid #e8edf5;
  box-shadow:
    0 4px 6px -1px rgba(16, 42, 99, 0.04),
    0 12px 28px -8px rgba(16, 42, 99, 0.1);
}

@media (min-width: 640px) {
  .volunteer-filter-card {
    padding: 1.5rem 1.75rem;
  }
}

.volunteer-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .volunteer-filter-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.875rem;
  }
}

.volunteer-filter-search-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .volunteer-filter-search-wrap {
    flex: 1.4 1 220px;
  }
}

.volunteer-filter-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.volunteer-filter-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 2px solid #d8e0ea;
  border-radius: 15px;
  background: #ffffff;
  color: #102a63;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.volunteer-filter-search {
  padding-left: 2.75rem;
}

.volunteer-filter-search::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.volunteer-filter-input:hover {
  border-color: #b8c5d6;
  background: #fafbfd;
}

.volunteer-filter-input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
  background: #ffffff;
}

.volunteer-filter-search-wrap:focus-within .volunteer-filter-search-icon {
  color: #ff6b00;
}

.volunteer-filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23102a63' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
}

@media (min-width: 768px) {
  .volunteer-filter-select {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
  }
}

.volunteer-result-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.22);
  color: #ff6b00;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.volunteer-pos-badge,
.volunteer-id-pos {
  display: inline-flex;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.volunteer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
}

@media (min-width: 640px) {
  .volunteer-card-header {
    min-height: 3.5rem;
  }
}

.volunteer-card-header .volunteer-pos-badge {
  margin-top: 0;
  flex-shrink: 0;
  align-self: center;
}

.volunteer-pos-badge {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.volunteer-id-pos {
  margin-top: 0.5rem;
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.volunteer-pos-badge--leader,
.volunteer-id-pos--leader {
  background: rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.22);
  color: #ff6b00;
}

.volunteer-pos-badge--media,
.volunteer-id-pos--media {
  background: rgba(16, 42, 99, 0.08);
  border-color: rgba(16, 42, 99, 0.18);
  color: #102a63;
}

.volunteer-pos-badge--navy,
.volunteer-id-pos--navy {
  background: rgba(30, 58, 138, 0.08);
  border-color: rgba(30, 58, 138, 0.18);
  color: #1e3a8a;
}

@media (min-width: 640px) {
  .volunteer-result-badge {
    align-self: center;
  }
}

/* Volunteer Page — ID Card Modal */
.volunteer-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.volunteer-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.volunteer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 99, 0.55);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background 350ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.volunteer-modal.is-open .volunteer-modal-backdrop {
  background: rgba(16, 42, 99, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.volunteer-modal-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .volunteer-modal-wrap {
    align-items: center;
    padding: 1.5rem;
  }
}

.volunteer-id-card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 92vh;
  overflow-y: auto;
  pointer-events: auto;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow:
    0 24px 60px rgba(16, 42, 99, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .volunteer-id-card {
    border-radius: 24px;
    transform: scale(0.9) translateY(30px);
    max-height: calc(100vh - 3rem);
  }

  .volunteer-id-card:hover {
    box-shadow:
      0 28px 68px rgba(16, 42, 99, 0.26),
      0 10px 28px rgba(0, 0, 0, 0.14);
  }
}

.volunteer-modal.is-open .volunteer-id-card {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .volunteer-modal.is-open .volunteer-id-card {
    transform: scale(1) translateY(0);
  }
}

.volunteer-modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e8edf5;
  border-radius: 9999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.volunteer-modal-close svg {
  width: 1rem;
  height: 1rem;
}

.volunteer-modal-close:hover {
  color: #ff6b00;
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.06);
}

.volunteer-modal-close:focus-visible {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.volunteer-id-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem 0.75rem;
  background: linear-gradient(135deg, #102a63 0%, #1a3d7a 100%);
  border-radius: 24px 24px 0 0;
  text-align: center;
}

.volunteer-id-brand-title {
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.volunteer-id-brand-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.volunteer-id-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #eef2f7;
}

.volunteer-id-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c42 100%);
  color: #ffffff;
  font-family: Outfit, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 10px 24px rgba(255, 107, 0, 0.35),
    0 4px 10px rgba(16, 42, 99, 0.12);
}

@media (min-width: 768px) {
  .volunteer-id-avatar {
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
  }
}

.volunteer-id-name {
  margin-top: 1rem;
  font-family: Outfit, sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: #102a63;
}

.volunteer-id-body,
.volunteer-id-private {
  padding: 0 1.25rem;
}

.volunteer-id-body {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.volunteer-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid #eef2f7;
}

.volunteer-id-row:last-child {
  border-bottom: none;
}

.volunteer-id-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
}

.volunteer-id-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #102a63;
  text-align: right;
  word-break: break-word;
}

.volunteer-id-private {
  margin: 0.75rem 1rem 1.25rem;
  padding: 0.875rem 1rem 0.25rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
}

.volunteer-id-private-title {
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.volunteer-id-private .volunteer-id-row {
  border-bottom-color: #e8edf5;
}

.volunteer-id-private .volunteer-id-label {
  font-size: 0.75rem;
}

.volunteer-id-private .volunteer-id-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

@media (max-width: 767px) {
  .volunteer-id-card {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .volunteer-id-name {
    font-size: 1.25rem;
  }
}

/* Volunteer card deep-link highlight */
@keyframes volunteerCardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.55);
    border-color: #fbbf24;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0.18);
    border-color: #f59e0b;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    border-color: #e2e8f0;
  }
}

.volunteer-card-highlight {
  animation: volunteerCardPulse 1.1s ease-in-out 2;
  border-color: #fbbf24 !important;
  background: #fffbeb;
}
.batch-pills{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.batch-pill{
  padding:12px 22px;

  border-radius:999px;

  background:rgba(255,255,255,.10);

  border:1px solid rgba(255,255,255,.12);

  color:white;

  font-weight:600;

  cursor:pointer;

  backdrop-filter:blur(16px);

  transition:.25s ease;

  user-select:none;
}

.batch-pill:hover{
  background:rgba(255,255,255,.18);
  transform:translateY(-2px);
}

.batch-pill.active{
  background:white;

  color:#1E3A8A;

  border-color:white;

  box-shadow:
    0 8px 25px rgba(255,255,255,.15);
}

.volunteer-attendance-badge{
    padding:4px 10px;

    border-radius:999px;

    background:
        rgba(34,197,94,.12);

    color:#16a34a;

    font-size:12px;

    font-weight:700;

    border:
        1px solid
        rgba(34,197,94,.18);

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:44px;
    height:28px;
    padding:0 10px;

    font-size:12px;
}

.volunteer-id-avatar-wrapper{
    position:relative;
    display:inline-flex;
    align-items:flex-start;
}

.volunteer-id-attendance{
    position:absolute;
    top:50%;
    left:100%;

    transform:translate(12px,-50%);

    display:flex;
    align-items:center;
    gap:8px;
}

.volunteer-id-attendance{
    position:absolute;

    top:50%;
    left:100%;

    transform:
        translate(
            16px,
            -50%
        );
}

.volunteer-attendance-chip{

    display:flex;
    align-items:center;
    gap:8px;

    padding:
        10px 16px;

    border-radius:
        999px;

    font-size:14px;
    font-weight:700;

    cursor:pointer;

    transition:.25s;

    user-select:none;

    box-shadow:
        0 6px 20px
        rgba(
            0,
            0,
            0,
            .08
        );
}

.volunteer-attendance-chip:hover{
    transform:
        translateY(-2px);
}




/*popup(i)*/

.attendance-popup-card{

    width:100%;
    max-width:320px;

    background:white;

    border-radius:20px;

    padding:24px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.25);

    text-align:center;
}

.attendance-popup-card h3{
    font-size:22px;
    font-weight:700;
    margin-bottom:16px;
}

.attendance-popup-card p{
    margin-bottom:10px;
    color:#475569;
}

.attendance-popup-card button{

    margin-top:20px;

    width:100%;

    height:44px;

    border:none;

    border-radius:12px;

    background:#1E3A8A;

    color:white;

    font-weight:700;

    cursor:pointer;
}

/*%*/

.volunteer-id-top{
    width:100%;

    display:grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:center;

    margin-bottom:18px;
}

.volunteer-id-avatar{
    justify-self:center;
}

.volunteer-id-attendance-panel{

    justify-self:end;

    display:flex;
    flex-direction:column;

    align-items:center;

    gap:8px;
}

.volunteer-attendance-score{

    display:flex;
    align-items:center;
    gap:6px;

    font-size:18px;
    font-weight:700;

    color:#1e293b;
}

.attendance-open-btn{

    border:none;

    background:#eef2ff;

    color:#1E3A8A;

    padding:
        8px
        14px;

    border-radius:12px;

    font-size:12px;
    font-weight:700;

    cursor:pointer;

    transition:.25s;
}

.attendance-open-btn:hover{
    background:#dbeafe;
}

.volunteer-id-name{
    text-align:center;
    width:100%;
}

.volunteer-id-pos-wrapper{
    width:100%;

    display:flex;

    justify-content:center;

    margin-top:12px;
}

.volunteer-attendance-green{
    background:rgba(34,197,94,.12);
    color:#16a34a;
    border:1px solid rgba(34,197,94,.18);
}

.volunteer-attendance-blue{
    background:rgba(59,130,246,.12);
    color:#2563eb;
    border:1px solid rgba(59,130,246,.18);
}

.volunteer-attendance-orange{
    background:rgba(249,115,22,.12);
    color:#ea580c;
    border:1px solid rgba(249,115,22,.18);
}

.volunteer-attendance-red{
    background:rgba(239,68,68,.12);
    color:#dc2626;
    border:1px solid rgba(239,68,68,.18);
}

/*image*/

.volunteer-avatar-wrapper{
    position:relative;
}

.volunteer-photo{
    width:56px;
    height:56px;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.volunteer-fallback-avatar{
    width:56px;
    height:56px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-weight:700;

    background:
        linear-gradient(
            135deg,
            #ff6b00,
            #ff8c42
        );
}

.volunteer-id-photo{
    width:90px;
    height:90px;

    border-radius:50%;

    object-fit:cover;

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .15
        );
}
/**/

.volunteer-search-match{
    border-color:#f59e0b !important;

    background:#fff8e6;

    box-shadow:
        0 0 0 4px rgba(245,158,11,.15),
        0 12px 30px rgba(245,158,11,.15);

    animation:
        volunteerSearchPulse
        1.5s infinite;
}

@keyframes volunteerSearchPulse{
    0%{
        box-shadow:
            0 0 0 0 rgba(245,158,11,.30);
    }

    70%{
        box-shadow:
            0 0 0 12px rgba(245,158,11,0);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(245,158,11,0);
    }
}