/* MASTER GIG SHOW - Premium Dark Mode Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Tokens */
  --bg-dark: #070A12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(6, 182, 212, 0.4);

  --accent-cyan: #06B6D4;
  --accent-teal: #10B981;
  --accent-emerald: #34D399;
  --accent-purple: #8B5CF6;
  --accent-indigo: #6366F1;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --nav-height: 70px;
  --header-height: 70px;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
  --glass-backdrop: blur(16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

html, body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #070A12;
  background-image: url('BG APP MGP.png');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* App Outer Shell - Mobile Container styling */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  max-height: 100dvh;
  overscroll-behavior: none;
  overscroll-behavior-y: none;

  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-main);
  overflow: hidden;
}

@media (min-width: 481px) {
  body {
    padding: 20px 0;
  }
  .app-container {
    height: 92vh;
    max-height: 92vh;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }
}

/* Header Bar */
.app-header {
  flex-shrink: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 12px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title span {
  display: block;
  font-size: 0.6rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-badge:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

/* Sync Status Indicator Badge */
.sync-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.sync-status-badge.online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.sync-status-badge.offline {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
}

.sync-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.sync-status-badge.online .status-dot {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseGreen 2s infinite;
}

.sync-status-badge.offline .status-dot {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Animated Splash Screen Overlay with BG APP.png Artwork */
.splash-animated-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #070A12;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-animated-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.splash-loader-box {
  position: relative;
  z-index: 2;
  margin-bottom: 75px;
}

.splash-loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

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

/* Welcome & Initial Onboarding Overlay */
.welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(14px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  overflow-y: auto;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  margin: auto 0;
  box-shadow: var(--shadow-main);
  text-align: left;
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.welcome-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 28px rgba(16, 185, 129, 0.7)); }
}

.onboarding-roles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.role-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.role-select-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2);
}

.role-select-card.selected {
  border-color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.role-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.role-select-card.selected .role-icon-box {
  background: var(--accent-teal);
  color: #070A12;
}

.role-info-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.role-info-box p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Scrollable Content Views */
.content-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 40px);
}

.view-panel {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography & Titles */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-subtitle {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Dashboard Summary Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
}

.metric-card.finance::before {
  background: linear-gradient(to bottom, var(--accent-teal), var(--accent-emerald));
}

.metric-card.shows::before {
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-indigo));
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-value.highlight {
  color: var(--accent-teal);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.shielded-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  background: rgba(244, 63, 94, 0.15);
  color: #FDA4AF;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  margin-top: 4px;
}

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

.event-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.25s ease;
  position: relative;
}

.event-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
}

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

/* New Event Card Header Alignment Rules */
.event-card-header-new {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-show-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.whatsapp-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.event-card-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  width: 100%;
}

.date-badge-inline {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.date-badge-inline .day {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.date-badge-inline .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.event-date-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-badge {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 52px;
}

.date-badge .day {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.event-title-group h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.event-title-group p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-chip.confirmado {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-chip.pendente {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-chip.recusado {
  background: rgba(244, 63, 94, 0.15);
  color: #F87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.event-details-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.schedule-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.schedule-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 0.76rem;
}

.schedule-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.schedule-pill strong {
  color: var(--text-primary);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.detail-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.detail-item strong {
  color: var(--text-primary);
}

/* Smooth Tab Transition Animations */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.view-panel.slide-in-right {
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-panel.slide-in-left {
  animation: slideInLeft 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Musician Roster Chips */
.roster-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px stroke rgba(255, 255, 255, 0.06);
}

.roster-title {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.roster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roster-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.725rem;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.roster-chip.current-user {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  color: var(--text-primary);
}

.roster-chip .cache-tag {
  color: var(--accent-teal);
  font-weight: 700;
  margin-left: 2px;
}

/* Action Buttons (GPS & Invites) */
.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.event-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.event-actions-grid .btn {
  grid-column: span 1;
  font-size: 0.72rem !important;
  padding: 8px 4px !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.event-actions-grid .btn-checklist-card {
  grid-column: span 3 !important;
  width: 100% !important;
  font-size: 0.78rem !important;
  padding: 10px 14px !important;
}

.btn-remove-scale-row {
  transition: all 0.2s ease;
}

.btn-remove-scale-row:hover {
  background: var(--accent-rose) !important;
  color: #FFFFFF !important;
  transform: scale(1.05);
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #070A12;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #F87171;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.3);
}

.btn-maps,
.btn-waze,
.btn-share-card {
  background: rgba(69, 123, 157, 0.2) !important;
  border: 1px solid rgba(69, 123, 157, 0.4) !important;
  color: #A8DADC !important;
}

.btn-whatsapp-share {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366;
}

.btn-whatsapp-chip {
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.btn-whatsapp-chip:hover {
  transform: scale(1.15);
  background: rgba(37, 211, 102, 0.35);
}

.btn-maps:hover, .btn-waze:hover, .btn-whatsapp-share:hover {

  transform: translateY(-1px);
  filter: brightness(1.2);
}

/* Floating Action Button (FAB) */
.fab-btn {
  position: absolute;
  bottom: calc(var(--nav-height) + 20px);
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #070A12;
  border: none;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 45;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-btn:hover {
  transform: scale(1.08) rotate(90deg);
}

.fab-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: var(--glass-backdrop);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
  padding: 0 8px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item.active svg {
  transform: translateY(-2px);
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px var(--accent-cyan);
}

/* Checklist Equipment Components */
.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.instrument-select-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;

}

.form-control {
  width: 100%;
  background: #0F172A;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* Explicit Select & Option Styling for Dark Mode Consistency */
select.form-control {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2006B6D4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-control option {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  padding: 12px;
  font-weight: 600;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.check-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--text-primary);
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  accent-color: var(--accent-teal);
  width: 16px;
  height: 16px;
}

/* Modals - Fixed Centering on Mobile Viewport */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border-radius: inherit;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-overlay.open .modal-card {
}

.modal-card {
  width: 100%;
  max-width: 450px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  max-height: 88%;
  overflow-y: auto;
  margin: auto;
  position: relative;
  z-index: 10000;
}


/* Musician Detail Modal Overlap Priority & Avatar Styling */
#modalMusicianDetail,
#modalEditShow,
#modalDeleteShow,
#modalJustification,
#modalAddEquipment,
#modalGigChecklistReminder,
#modalFirebaseAuth {
  z-index: 12000 !important;
}

#modalMusicianDetail .modal-card,
#modalEditShow .modal-card,
#modalDeleteShow .modal-card,
#modalJustification .modal-card,
#modalAddEquipment .modal-card,
#modalGigChecklistReminder .modal-card,
#modalFirebaseAuth .modal-card {
  z-index: 12001 !important;
}

/* Calendar Selected Day Modal Micro-Optimizations */
#modalCalendarDayDetails .modal-card {
  max-width: 470px;
  max-height: 96vh;
  padding: 12px 14px;
}

#modalCalendarDayDetails .event-card {
  padding: 10px 12px;
}

#modalCalendarDayDetails .event-details-grid {
  margin-bottom: 8px;
  padding: 8px 10px;
}

#modalCalendarDayDetails .roster-section {
  margin-top: 6px;
  padding-top: 6px;
}

#modalCalendarDayDetails .event-actions {
  margin-top: 8px;
}

.musician-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #070A12;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  line-height: 1;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Musician Scaling Dynamic List in Form */
.musician-scale-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.musician-scale-item select, .musician-scale-item input {
  font-size: 0.78rem;
}

/* Edit Event Pencil Button in Card Header */
.edit-event-btn {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.edit-event-btn:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Delete Event Trash Button in Card Header */
.delete-event-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #F87171;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-event-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: var(--accent-rose);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* Equipment Checklist Delete Button */
.remove-checklist-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-checklist-btn:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

/* History Filters */
.history-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.history-filter-bar select {
  flex: 1;
}

/* Toast / Notification Popup Styling */
.toast-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(6, 182, 212, 0.96));
  color: #070A12;
  padding: 16px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.5);
  z-index: 15000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88%;
  max-width: 360px;
  text-align: center;
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#toastMessage {
  width: 100%;
  line-height: 1.45;
  text-wrap: balance;
  white-space: normal;
  word-break: break-word;
}

/* Smart Location Autocomplete Dropdown */
.address-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0F172A;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 1050;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 4px;
}

.suggestion-item {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-item:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.suggestion-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Interactive Calendar View Styles */
.calendar-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  color: #070A12;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.calendar-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-main);
  margin-bottom: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.calendar-month-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 0;
  text-transform: capitalize;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.cal-day-cell.empty {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}

.cal-day-cell:hover:not(.empty) {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.cal-day-cell.is-today {
  border-color: var(--accent-teal);
  box-shadow: inset 0 0 0 1px var(--accent-teal);
}

.cal-day-cell.has-shows {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.cal-day-cell.has-shows .day-number {
  color: #FFFFFF;
  font-weight: 800;
}

.show-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  position: absolute;
  bottom: 4px;
}

.show-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-teal);
  color: #070A12;
  font-size: 0.6rem;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item.active svg {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}

/* Floating Action Button (FAB) - Centered & Elevated (Matching Reference Image 1) */
.fab-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #0284C7);
  color: #070A12;
  border: 3px solid #070A12;
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.55), 0 0 12px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-btn:hover {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.75);
}

.fab-btn:active {
  transform: translateX(-50%) scale(0.95);
}


