:root {
  /* Cores - Identidade Visual IPB */
  --ipb-green-primary: #006633;
  --ipb-green-dark: #004d26;
  --ipb-green-light: #2ebd59;
  --ipb-green-tint: #e6f6ee;
  --ipb-accent-orange: #f59e0b;
  --ipb-accent-orange-dark: #d97706;

  /* Cores - Neutras */
  --neutral-white: #ffffff;
  --neutral-gray-50: #f9fafb;
  --neutral-gray-100: #f3f4f6;
  --neutral-gray-200: #e5e7eb;
  --neutral-gray-300: #d1d5db;
  --neutral-gray-400: #9ca3af;
  --neutral-gray-500: #6b7280;
  --neutral-gray-600: #4b5563;
  --neutral-gray-700: #374151;
  --neutral-gray-800: #1f2937;
  --neutral-gray-900: #111827;

  /* Cores - Feedback */
  --color-danger: #ef4444;
  --color-danger-dark: #dc2626;
  --color-success: #10b981;
  --color-info: #3b82f6;

  /* Fontes e Tipografia */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #f0f2f5;
  color: var(--neutral-gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Loader */
.app-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 16px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--neutral-gray-200);
  border-top-color: var(--ipb-green-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Login View */
.login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--ipb-green-dark) 0%, var(--ipb-green-primary) 100%);
}

.login-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--ipb-green-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-tagline {
  color: var(--neutral-gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1.5px solid var(--neutral-gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease-in-out;
  background-color: var(--neutral-gray-50);
}

.form-input:focus {
  border-color: var(--ipb-accent-orange);
  background-color: var(--neutral-white);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-white);
  background: linear-gradient(135deg, var(--ipb-green-primary) 0%, var(--ipb-green-dark) 100%);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 77, 38, 0.2);
}

@keyframes primaryBtnAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-confirm-animated {
  background: linear-gradient(270deg, #004522, #007a3d, #004522);
  background-size: 200% 200%;
  animation: primaryBtnAnimation 5s ease infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(0, 77, 38, 0.25);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--neutral-gray-300);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-gray-650);
  background-color: var(--neutral-gray-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--neutral-gray-100);
  color: var(--neutral-gray-800);
  border-color: var(--neutral-gray-400);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  text-align: left;
  border-left: 4px solid var(--color-danger);
}

/* Dashboard View */
.topbar {
  background-color: var(--ipb-green-primary);
  color: var(--neutral-white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--neutral-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--neutral-white);
}

.dashboard-main {
  flex-grow: 1;
  padding: 16px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-greeting-card {
  position: relative;
  background-color: #eaf5ee;
  background-image:
    radial-gradient(at 10% 15%, rgba(0, 78, 39, 0.16) 0px, transparent 55%),
    radial-gradient(at 90% 10%, rgba(0, 55, 27, 0.14) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(255, 255, 255, 0.9) 0px, transparent 60%),
    radial-gradient(at 85% 85%, rgba(37, 156, 73, 0.12) 0px, transparent 50%),
    radial-gradient(at 25% 85%, rgba(0, 78, 39, 0.1) 0px, transparent 50%),
    radial-gradient(at 45% 15%, rgba(214, 239, 223, 0.8) 0px, transparent 55%);
  background-size: 200% 200%;
  animation: waveMotion 22s ease-in-out infinite;
  overflow: hidden;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(46, 125, 50, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-greeting-card::before {
  content: "";
  position: absolute;
  bottom: -60%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 78, 39, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 43%;
  animation: waveRotate 25s infinite linear;
  pointer-events: none;
  z-index: 1;
}

.user-greeting-card::after {
  content: "";
  position: absolute;
  bottom: -70%;
  right: -30%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(37, 156, 73, 0.12) 0%, rgba(255, 255, 255, 0) 75%);
  border-radius: 40%;
  animation: waveRotateInverse 30s infinite linear;
  pointer-events: none;
  z-index: 1;
}

.user-greeting-card>* {
  position: relative;
  z-index: 2;
}

@keyframes waveMotion {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes waveRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes waveRotateInverse {
  from {
    transform: rotate(360deg);
  }

  50% {
    transform: rotate(180deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.greeting-welcome-text {
  font-size: 14px;
  font-weight: 600;
  color: #084020;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.greeting-welcome-text .leaf-icon {
  color: var(--ipb-green-primary);
  display: inline-flex;
}

.greeting-card-username {
  font-size: 21px;
  font-weight: 700;
  color: #042612;
  margin: 4px 0 0 0;
  letter-spacing: -0.3px;
}

.greeting-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ipb-green-dark);
  background-color: var(--ipb-green-tint);
  border: 1px solid rgba(46, 125, 50, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  width: fit-content;
}

.greeting-card-badge.admin-badge {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.2);
}

.greeting-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
}

.greeting-avatar-container::before,
.greeting-avatar-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.8px solid rgba(46, 125, 50, 0.45);
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.25);
  animation: avatarPulse 4s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.greeting-avatar-container::after {
  animation-delay: 2s;
}

.greeting-avatar-wrapper {
  position: relative;
  cursor: pointer;
  width: 96px;
  height: 96px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@keyframes avatarPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.32);
    opacity: 0;
  }

  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

.greeting-avatar-wrapper:hover {
  transform: scale(1.03);
}

.greeting-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--neutral-white);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15), 0 0 8px rgba(46, 125, 50, 0.2);
  display: block;
}

.greeting-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--ipb-green-tint);
  border: 3.5px solid var(--neutral-white);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15), 0 0 8px rgba(46, 125, 50, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: var(--ipb-green-dark);
  font-size: 40px;
}

.btn-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--ipb-green-primary);
  color: var(--neutral-white);
  border: 1.8px solid var(--neutral-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  padding: 0;
}

.btn-avatar-edit-badge:hover {
  transform: scale(1.11);
  background-color: var(--ipb-green-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
}

/* Filtro de Mes */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-gray-700);
}

.filter-select {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1.5px solid var(--neutral-gray-200);
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  outline: none;
  font-weight: 600;
  color: var(--neutral-gray-800);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.filter-select:focus {
  border-color: var(--ipb-green-primary);
}

/* Event Cards List */
.events-list-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.events-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

#btn-new-event {
  width: auto;
  padding: 10px 20px;
  font-weight: 700;
  height: 40px;
  font-size: 14px;
  white-space: nowrap;
}

.events-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-gray-700);
}

@media (max-width: 480px) {
  .events-list-header {
    gap: 8px;
  }

  #btn-new-event {
    padding: 8px 12px;
    font-size: 12px;
    height: 36px;
  }

  .events-list-title {
    font-size: 14.5px;
  }
}



.no-events-state {
  background-color: var(--neutral-white);
  padding: 32px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--neutral-gray-500);
  box-shadow: var(--shadow-sm);
}

.event-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--neutral-gray-200);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.event-card:active {
  transform: scale(0.995);
  box-shadow: none;
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.event-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.event-card-badge.status-open {
  background-color: var(--ipb-green-tint);
  color: var(--ipb-green-primary);
}

.event-card-badge.status-closed {
  background-color: var(--neutral-gray-100);
  color: var(--neutral-gray-500);
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-gray-800);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.event-details-snippet {
  font-size: 14px;
  color: var(--neutral-gray-600);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ipb-green-dark);
}

.event-description-snippet {
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.event-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--neutral-gray-100);
  padding-top: 12px;
}

.event-card-footer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-grow: 1;
}

/* Specific responsive rules for small screen widths */
@media (max-width: 480px) {
  .event-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .event-card-footer-buttons {
    justify-content: space-between;
  }

  .event-card-footer-buttons button,
  .event-card-footer-buttons .btn-card-action {
    flex-grow: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Overlapping participants avatars */
.avatars-overlap-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.avatars-group {
  display: flex;
  flex-direction: row;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--neutral-white);
  background-color: var(--ipb-green-primary);
  color: var(--neutral-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  user-select: none;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  overflow: hidden;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.avatar-overflow {
  background-color: var(--neutral-gray-400);
  color: var(--neutral-white);
  margin-left: -8px;
}

.avatar-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-gray-500);
  margin-left: 4px;
}

.btn-card-action {
  background-color: var(--neutral-gray-50);
  color: var(--ipb-green-primary);
  border: 1.5px solid var(--neutral-gray-200);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-card-action:hover {
  background-color: var(--ipb-green-tint);
  border-color: var(--ipb-green-primary);
}

.btn-card-action:active {
  transform: translateY(1px);
}

/* Modal Responsiva */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--neutral-white);
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  max-width: 800px;
  max-height: calc(100% - 8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--neutral-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--neutral-gray-50);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-gray-800);
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--neutral-gray-400);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  color: var(--neutral-gray-700);
  background-color: var(--neutral-gray-100);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Estilização interna da Modal */
.modal-event-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-date-badge {
  font-weight: 700;
  color: var(--ipb-green-primary);
  font-size: 15px;
}

.modal-desc {
  font-size: 14px;
  color: var(--neutral-gray-600);
  line-height: 1.5;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-gray-800);
  border-bottom: 2.5px solid var(--ipb-green-tint);
  padding-bottom: 4px;
}

/* Schedules */
.schedules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: var(--neutral-gray-50);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--neutral-gray-300);
}

.schedule-time {
  font-weight: 700;
  color: var(--neutral-gray-800);
  font-size: 14px;
  background-color: var(--neutral-gray-200);
  padding: 2px 6px;
  border-radius: 4px;
}

.schedule-name {
  font-size: 14px;
  color: var(--neutral-gray-800);
  font-weight: 500;
}

/* Songs */
.songs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--neutral-gray-50);
  border: 1px solid var(--neutral-gray-200);
  border-radius: var(--radius-sm);
}

.song-info {
  display: flex;
  flex-direction: column;
}

.song-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--neutral-gray-800);
}

.song-artist {
  font-size: 12px;
  color: var(--neutral-gray-500);
}

.song-link {
  font-size: 12px;
  color: var(--neutral-gray-600);
  background-color: transparent;
  border: 1.5px solid var(--neutral-gray-300);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  text-align: center;
  align-self: center;
}

.song-link:hover {
  background-color: var(--neutral-gray-100);
  border-color: var(--neutral-gray-400);
  color: var(--neutral-gray-800);
}

/* Participants list in Modal */
.participants-list-modal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 4px 4px;
  background-color: var(--ipb-green-tint);
  border-radius: var(--radius-sm);
}

.participant-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-modal-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--ipb-green-primary);
  color: var(--neutral-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participant-name-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--ipb-green-dark);
}

.participant-role-tag {
  font-size: 10px;
  font-weight: 700;
  background-color: transparent;
  color: var(--ipb-green-dark);
  border: 1px solid rgba(46, 125, 50, 0.4);
  padding: 1px 6px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
}

/* Action Area in Modal */
.modal-action-box {
  background-color: var(--neutral-gray-50);
  border: 1px solid var(--neutral-gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-action-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-gray-700);
  text-align: center;
}

.role-select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1.5px solid var(--neutral-gray-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--neutral-gray-700);
}

.btn-participate {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-msg {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.action-msg.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.action-msg.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

/* Admin Toggle button */
.admin-actions-box {
  background-color: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-admin-toggle {
  background-color: #b45309;
  color: var(--neutral-white);
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-admin-toggle:hover {
  background-color: #92400e;
}

/* Feedback Messages */
.toast-msg {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--neutral-gray-800);
  color: var(--neutral-white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Desktop and Tablet Adjustments */
@media (min-width: 600px) {
  body {
    background-color: #f7f9fa;
  }

  .dashboard-main {
    padding: 32px 24px;
  }

  .modal-overlay {
    align-items: center;
    /* Center on tablets + desktop */
  }

  .modal-container {
    border-radius: var(--radius-lg);
    max-height: calc(100% - 8px);
  }
}

/* Schedule Blocks styling - Plan 06.5 Phase 3 */
.schedule-block {
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-block-header {
  background-color: var(--ipb-green-dark);
  color: var(--neutral-white);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-block-time {
  font-size: 18px;
  font-weight: 800;
}

.schedule-block-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-block-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-sub-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-sub-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ipb-green-dark);
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ipb-green-tint);
  padding-bottom: 4px;
  letter-spacing: 0.5px;
}

.empty-escala-msg {
  font-size: 13px;
  color: var(--neutral-gray-400);
  font-style: italic;
  padding: 4px 0;
}

/* Volunteer badges & forms */
.volunteer-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.volunteer-status-box.status-confirmed-badge {
  background-color: var(--ipb-green-tint);
  color: var(--ipb-green-dark);
  border: 1px solid var(--ipb-green-primary);
}

.volunteer-status-box.status-available-badge {
  background-color: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid #3b82f6;
}

.volunteer-status-box.status-closed-badge {
  background-color: var(--neutral-gray-100);
  color: var(--neutral-gray-500);
  border: 1px solid var(--neutral-gray-200);
}

.btn-w100 {
  width: 100%;
  display: block;
}

/* Admin inline buttons inside modal */
.admin-row-actions {
  display: flex;
  gap: 6px;
}

.btn-row-action {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s;
}

.btn-row-action.btn-confirm-action {
  background-color: var(--ipb-green-tint);
  color: var(--ipb-green-dark);
}

.btn-row-action.btn-confirm-action:hover {
  background-color: var(--ipb-green-primary);
  color: var(--neutral-white);
}

.btn-row-action.btn-remove-action {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.btn-row-action.btn-remove-action:hover {
  background-color: var(--color-danger);
  color: var(--neutral-white);
}

/* Base utility for visibility toggling */
.hidden {
  display: none !important;
}

/* Multi-step progress indicators for Admin modal */
.step-indicator-item::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background-color: var(--neutral-gray-200);
  z-index: 1;
}

.step-indicator-item:last-child::after {
  display: none;
}

.step-indicator-item.completed::after {
  background-color: var(--ipb-green-primary);
}

.step-indicator-circle {
  position: relative;
  z-index: 2;
}

/* Custom scroll for modal sections */
.summary-step-container::-webkit-scrollbar,
.songs-step-container ::-webkit-scrollbar {
  width: 6px;
}

.summary-step-container::-webkit-scrollbar-thumb,
.songs-step-container ::-webkit-scrollbar-thumb {
  background-color: var(--neutral-gray-300);
  border-radius: 3px;
}

/* Premium Animated Volunteer Button */
#btn-show-availability {
  width: 100%;
  padding: 12px 20px;
  background-color: transparent;
  color: var(--ipb-green-primary);
  border: 1.5px solid var(--ipb-green-primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-show-availability:hover {
  background-color: rgba(46, 125, 50, 0.05);
  border-color: var(--ipb-green-dark);
  color: var(--ipb-green-dark);
}

#btn-show-availability:active {
  transform: translateY(0);
}

/* Sidebar Navigation Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Panel */
.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85%;
  height: 100vh;
  background-color: var(--neutral-white);
  box-shadow: 4px 0 24px rgba(0, 77, 38, 0.15);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sidebar-panel.open {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--neutral-gray-200);
}

.sidebar-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--ipb-green-primary);
  letter-spacing: -0.5px;
}

.sidebar-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--neutral-gray-500);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.sidebar-close:hover {
  color: var(--neutral-gray-800);
}

/* Sidebar User Info Section */
.sidebar-user-section {
  padding: 20px;
  background: linear-gradient(135deg, var(--ipb-green-tint) 0%, rgba(214, 239, 223, 0.4) 100%);
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ipb-green-dark);
}

.sidebar-user-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-gray-650);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Sidebar Menu List */
.sidebar-menu {
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex-grow: 1;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--neutral-gray-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-menu-item:hover {
  background-color: var(--neutral-gray-100);
  color: var(--neutral-gray-900);
}

.sidebar-menu-item.active {
  background-color: var(--ipb-green-tint);
  color: var(--ipb-green-primary);
}

.sidebar-menu-logout {
  margin-top: auto;
  color: var(--color-danger);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  padding-top: 16px;
}

.sidebar-menu-logout:hover {
  background-color: rgba(239, 68, 68, 0.06);
  color: var(--color-danger);
}

/* Animate.css overrides for subtle premium feel */
.animate__animated {
  animation-duration: 0.3s !important;
  /* 300ms duration for all animations */
}

/* Subtle icon size refinement inside sidebar active links */
.sidebar-menu-item .sidebar-menu-icon i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Segmented Control Styles */
.segmented-control {
  display: flex;
  background-color: Azure;
  border: 1px solid Gainsboro;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.sc-tab-btn {
  flex: 1;
  border: 1px solid var(--neutral-gray-250);
  background: transparent;
  color: var(--neutral-gray-600);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  user-select: none;
}

.sc-tab-btn:hover {
  border-color: var(--neutral-gray-300);
  color: var(--ipb-green-dark);
}

.sc-tab-btn.active {
  background-color: var(--ipb-green-primary);
  border-color: var(--ipb-green-primary);
  color: var(--neutral-white);
  box-shadow: 0 2px 6px rgba(46, 117, 89, 0.25);
}

/* Event Card Past/Realizado styling */
.event-card.event-card-past {
  background-color: #fafafa !important;
  border: 1.5px solid Gainsboro !important;
  box-shadow: none !important;
}

.event-card.event-card-past .event-title {
  color: var(--neutral-gray-500) !important;
}

.event-card.event-card-past .event-description-snippet {
  color: var(--neutral-gray-400) !important;
}

.event-card.event-card-past .event-date-row {
  color: var(--neutral-gray-400) !important;
}

/* Badge Realizado status */
.event-card-badge.status-past {
  background-color: var(--neutral-gray-200) !important;
  color: var(--neutral-gray-600) !important;
  border-color: var(--neutral-gray-300) !important;
  font-weight: 700;
}