/* Reset and base styles */

/* Church logo styles */
.church-logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Main section styles */
.main-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Location grid styles */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.location-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Location-specific hover effects */
.location-card[data-location="betel-manastur"]:hover {
  border-color: #48c0b9;
  box-shadow: 0 12px 35px rgba(72, 192, 185, 0.3);
}

.location-card[data-location="betel-centru"]:hover {
  border-color: #ff9900;
  box-shadow: 0 12px 35px rgba(255, 153, 0, 0.3);
}

.location-card[data-location="betel-vest"]:hover {
  border-color: #a1394b;
  box-shadow: 0 12px 35px rgba(161, 57, 75, 0.3);
}

.location-card[data-location="betel-east"]:hover {
  border-color: #0000FF;
  box-shadow: 0 12px 35px rgba(0, 0, 255, 0.3);
}

/* Coming Soon overlay for Betel East */
.location-card[data-location="betel-east"] {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.location-card[data-location="betel-east"]::before {
  content: 'Coming Soon';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  white-space: nowrap;
}

.location-card[data-location="betel-east"]:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.location-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.location-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2d3748;
}

.location-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.location-card p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Location-specific header colors for listener page */
.hero[data-location="betel-manastur"] {
  background: linear-gradient(135deg, #48c0b9 0%, #3ba8a1 100%);
}

.hero[data-location="betel-centru"] {
  background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
  color: white;
}

.hero[data-location="betel-vest"] {
  background: linear-gradient(135deg, #a1394b 0%, #8a2f3f 100%);
}

.hero[data-location="betel-east"] {
  background: linear-gradient(135deg, #0000FF 0%, #000080 100%);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-streams {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
  margin-top: 5px;
}

.active-streams-display {
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: white;
}

.streams-label {
  font-weight: 600;
  opacity: 0.9;
}

.streams-codes {
  font-weight: 500;
  opacity: 1;
}


/* Main content */
.main-content {
  background: white;
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
  padding: 60px 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

/* Role selection */
.role-selection {
  padding: 0 40px;
}

.role-selection h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2d3748;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.role-card {
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.role-icon {
  font-size: 4rem;
  margin-bottom: 25px;
}

.role-card h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2d3748;
}

.role-card p {
  color: #718096;
  margin-bottom: 35px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.back-button-top {
  text-align: left;
  margin-bottom: 20px;
}

.back-button {
  text-align: center;
  margin-top: 40px;
}

.refresh-button {
  text-align: center;
  margin-top: 40px;
}

/* Translator info */
.translator-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 40px 0 30px 0;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
}

.translator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.translator-header p {
  margin: 0;
  color: #2d3748;
  font-weight: 500;
}

.translator-header .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Language selection */
.language-selection {
  padding: 0 40px;
}

.language-selection h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2d3748;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.language-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.language-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Active/Inactive stream indicators */
.language-card.active-stream {
  border: 2px solid #28a745;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.language-card.active-stream::before {
  content: '🔴 LIVE';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.language-card.inactive-stream {
  opacity: 0.7;
  border: 2px solid #e2e8f0;
}

.language-card.inactive-stream::before {
  content: '⏸️ OFFLINE';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6c757d;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.language-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.language-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3748;
}

.language-card p {
  color: #718096;
  margin-bottom: 30px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  border: 2px solid #dee2e6 !important;
  box-shadow: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  border: 2px solid #dee2e6 !important;
}

/* Features section */
.features {
  padding: 60px 40px;
  background: #f7fafc;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2d3748;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3748;
}

.feature p {
  color: #718096;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: #2d3748;
  color: white;
}

/* Main donation button styling */
.main-donation-btn {
  background: #2d3748 !important;
  color: white !important;
  padding: 15px 30px !important;
  border: 2px solid white !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.main-donation-btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
  color: white !important;
  text-decoration: none !important;
}

.main-donation-section {
  margin-bottom: 20px;
}

/* Mobile responsive adjustments for main donation button */
@media (max-width: 768px) {
  .main-donation-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

/* Status indicators */
.status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

.status-connected {
  background: #c6f6d5;
  color: #22543d;
}

.status-disconnected {
  background: #fed7d7;
  color: #742a2a;
}

/* Auto-reconnect functionality (no manual button needed) */

.status-broadcasting {
  background: #bee3f8;
  color: #2a4365;
}

/* Chat styles */
.chat-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 20px;
  background: #f7fafc;
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  background: white;
  border-left: 4px solid #667eea;
}

.chat-message.own-message {
  background: #e6fffa;
  border-left-color: #38b2ac;
  text-align: right;
}

.chat-input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: #667eea;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 28px;
}

/* Location change blocked popup specific styles */
#location-change-blocked-popup .modal-overlay {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 100px;
}

#location-change-blocked-popup .modal-content {
  border: 3px solid #e53e3e;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  margin: 0 auto;
  position: relative;
  transform: none;
}

#location-change-blocked-popup .modal-content h2 {
  color: #e53e3e;
  font-weight: 700;
}

#location-change-blocked-popup .btn-primary {
  background: #e53e3e;
  border-color: #e53e3e;
}

#location-change-blocked-popup .btn-primary:hover {
  background: #c53030;
  border-color: #c53030;
}

.modal-content p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.role-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.role-btn {
  display: flex;
  align-items: center;
  padding: 25px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.role-btn:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.role-btn.broadcaster:hover {
  border-color: #28a745;
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}

.role-btn.listener:hover {
  border-color: #17a2b8;
  box-shadow: 0 10px 20px rgba(23, 162, 184, 0.2);
}

.role-btn .icon {
  font-size: 32px;
  margin-right: 20px;
  width: 50px;
  text-align: center;
}

.role-btn .title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.role-btn .desc {
  font-size: 14px;
  color: #666;
  display: block;
}

/* Login Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

/* Error Modal */
.error-modal {
  border: 3px solid #dc3545;
}

.error-modal h2 {
  color: #dc3545;
  margin-bottom: 20px;
}

.error-modal p {
  color: #666;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 30px;
}

.error-modal .close-btn {
  position: static;
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.error-modal .close-btn:hover {
  background: #c82333;
  color: white;
}

/* Broadcasting Interface */
.broadcasting-interface,
.listening-interface {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Audio Controls */
.audio-controls {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 15px;
}

.mute-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mute-btn.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.mute-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.mute-btn.muted {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.mute-btn.muted:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.mute-icon {
  font-size: 18px;
}

.mute-text {
  font-size: 16px;
}

/* Recording button styles */
.record-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.record-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.record-btn.recording {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.record-btn.recording:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.record-icon {
  font-size: 18px;
}

.record-text {
  font-size: 16px;
}

/* Recording status indicator */
.status-recording {
  color: #dc3545;
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Audio Level Indicator - Now using visualizer bars */

/* Status indicators */
.status-active {
  color: #28a745;
  font-weight: 600;
}

.status-muted {
  color: #dc3545;
  font-weight: 600;
}

.broadcasting-interface .header,
.listening-interface .header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.broadcasting-interface .header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.listening-interface .header {
  background: linear-gradient(135deg, #ff9900 0%, #ff8800 100%);
}

/* Location-specific header colors for listening interface */
.listening-interface[data-location="betel-manastur"] .header {
  background: linear-gradient(135deg, #48c0b9 0%, #3ba8a1 100%);
}

.listening-interface[data-location="betel-centru"] .header {
  background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
}

.listening-interface[data-location="betel-vest"] .header {
  background: linear-gradient(135deg, #a1394b 0%, #8a2f3f 100%);
}

.listening-interface[data-location="betel-east"] .header {
  background: linear-gradient(135deg, #3aa047 0%, #2d8a3a 100%);
}

.broadcasting-interface .header h2,
.listening-interface .header h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.broadcasting {
  background: #28a745;
}

.status-dot.listening {
  background: #ff9900;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.content {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.audio-visualizer {
  text-align: center;
  margin-bottom: 30px;
}

.visualizer-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.visualizer-bars .bar {
  width: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  transition: all 0.1s ease;
  min-height: 10px;
  height: 10%;
  opacity: 0.3;
  align-self: flex-end;
}

.visualizer-text {
  font-size: 14px;
  color: #007bff;
  font-weight: 500;
  margin-top: 10px;
}

@keyframes audioWave {
  0%, 100% { height: 20px; }
  50% { height: 60px; }
}

.audio-indicator {
  text-align: center;
  margin-bottom: 30px;
}

.speaker-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: speakerPulse 1s ease-in-out infinite;
}

@keyframes speakerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.audio-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}

.audio-bars .bar {
  width: 6px;
  background: linear-gradient(to top, #17a2b8, #6f42c1);
  border-radius: 3px;
  animation: audioWave 1.5s ease-in-out infinite;
}

.audio-bars .bar:nth-child(1) { animation-delay: 0s; }
.audio-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.audio-bars .bar:nth-child(3) { animation-delay: 0.4s; }

.info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.info p {
  margin: 10px 0;
  color: #333;
  font-size: 16px;
}

.info strong {
  color: #007bff;
}

.chat-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.chat-section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fff2e0;
}

/* Location-specific chat colors */
.chat-messages[data-location="betel-manastur"] {
  background: #91d4d1;
}

.chat-messages[data-location="betel-centru"] {
  background: #fff2e0;
}

.chat-messages[data-location="betel-vest"] {
  background: #dba5b3;
}

.chat-messages[data-location="betel-east"] {
  background: #e6f3ff;
}

/* Location-specific chat section borders and backgrounds */
.chat-section[data-location="betel-manastur"] {
  border: 2px solid #48c0b9 !important;
  background: #91d4d1 !important;
}

.chat-section[data-location="betel-centru"] {
  border: 2px solid #ff9900 !important;
  background: #fff2e0 !important;
}

.chat-section[data-location="betel-vest"] {
  border: 2px solid #a1394b !important;
  background: #dba5b3 !important;
}

.chat-section[data-location="betel-east"] {
  border: 2px solid #0000FF !important;
  background: #e6f3ff !important;
}

/* Location-specific chat input focus colors */
.chat-input input[data-location="betel-manastur"]:focus {
  border-color: #48c0b9 !important;
  box-shadow: 0 0 0 3px rgba(72, 192, 185, 0.1) !important;
}

.chat-input input[data-location="betel-centru"]:focus {
  border-color: #ff9900 !important;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1) !important;
}

.chat-input input[data-location="betel-vest"]:focus {
  border-color: #a1394b !important;
  box-shadow: 0 0 0 3px rgba(161, 57, 75, 0.1) !important;
}

.chat-input input[data-location="betel-east"]:focus {
  border-color: #0000FF !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1) !important;
}

/* Location-specific send button colors */
.chat-input button[data-location="betel-manastur"] {
  background: #48c0b9 !important;
}

.chat-input button[data-location="betel-manastur"]:hover {
  background: #3ba8a1 !important;
}

.chat-input button[data-location="betel-centru"] {
  background: #ff9900 !important;
}

.chat-input button[data-location="betel-centru"]:hover {
  background: #e68900 !important;
}

.chat-input button[data-location="betel-vest"] {
  background: #a1394b !important;
}

.chat-input button[data-location="betel-vest"]:hover {
  background: #8a2f3f !important;
}

.chat-input button[data-location="betel-east"] {
  background: #0000FF !important;
}

.chat-input button[data-location="betel-east"]:hover {
  background: #000080 !important;
}

/* Location-specific message border colors */
.chat-message[data-location="betel-manastur"] {
  border-left: 3px solid #48c0b9 !important;
}

.chat-message[data-location="betel-centru"] {
  border-left: 3px solid #ff9900 !important;
}

.chat-message[data-location="betel-vest"] {
  border-left: 3px solid #a1394b !important;
}

.chat-message[data-location="betel-east"] {
  border-left: 3px solid #0000FF !important;
}

/* Location-specific footer colors for translator and listener interfaces */
.broadcasting-interface[data-location="betel-manastur"] .footer,
.listening-interface[data-location="betel-manastur"] .footer {
  background: linear-gradient(135deg, #48c0b9 0%, #3ba8a1 100%);
  color: white;
}

.broadcasting-interface[data-location="betel-centru"] .footer,
.listening-interface[data-location="betel-centru"] .footer {
  background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
  color: white;
}

.broadcasting-interface[data-location="betel-vest"] .footer,
.listening-interface[data-location="betel-vest"] .footer {
  background: linear-gradient(135deg, #a1394b 0%, #8a2f3f 100%);
  color: white;
}

.broadcasting-interface[data-location="betel-east"] .footer,
.listening-interface[data-location="betel-east"] .footer {
  background: linear-gradient(135deg, #0000FF 0%, #000080 100%);
  color: white;
}

/* Donation button styling */
.donation-btn {
  background: #007bff !important;
  color: white !important;
  padding: 12px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  margin-left: 10px !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.donation-btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  color: white !important;
  text-decoration: none !important;
}

/* Location-specific donation button colors */
.listening-interface[data-location="betel-manastur"] .donation-btn {
  background: #48c0b9 !important;
}

.listening-interface[data-location="betel-centru"] .donation-btn {
  background: #ff9900 !important;
}

.listening-interface[data-location="betel-vest"] .donation-btn {
  background: #a1394b !important;
}

.listening-interface[data-location="betel-east"] .donation-btn {
  background: #0000FF !important;
}

/* Location-specific header colors for translator interface */
.broadcasting-interface[data-location="betel-manastur"] .header {
  background: linear-gradient(135deg, #48c0b9 0%, #3ba8a1 100%);
}

.broadcasting-interface[data-location="betel-centru"] .header {
  background: linear-gradient(135deg, #ff9900 0%, #e68900 100%);
}

.broadcasting-interface[data-location="betel-vest"] .header {
  background: linear-gradient(135deg, #a1394b 0%, #8a2f3f 100%);
}

.broadcasting-interface[data-location="betel-east"] .header {
  background: linear-gradient(135deg, #0000FF 0%, #000080 100%);
}

.chat-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #ff9900;
  font-size: 14px;
}

.message-time {
  color: #666;
  font-size: 12px;
  margin-right: 8px;
}

.message-from {
  font-weight: 600;
  margin-right: 8px;
}

/* Location-specific username colors */
.message-from[data-location="betel-manastur"] {
  color: #48c0b9 !important;
}

.message-from[data-location="betel-centru"] {
  color: #ff9900 !important;
}

.message-from[data-location="betel-vest"] {
  color: #a1394b !important;
}

.message-from[data-location="betel-east"] {
  color: #0000FF !important;
}

.message-text {
  color: #333;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.chat-input input:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.chat-input button {
  padding: 12px 20px;
  background: #ff9900;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.chat-input button:hover {
  background: #e68900;
}

/* Responsive chat input layout */
@media (max-width: 768px) {
  .chat-input {
    flex-direction: column;
    gap: 8px;
  }
  
  .chat-input #chat-input,
  .chat-input button {
    width: 100% !important;
    margin: 0 !important;
  }
}

.footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.stop-btn {
  padding: 15px 30px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stop-btn:hover {
  background: #c82333;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  animation: slideInRight 0.3s ease-out;
}

.notification.error {
  background: #dc3545;
  border-left: 4px solid #c82333;
}

.notification.info {
  background: #3498db;
  border-left: 4px solid #2980b9;
}

.notification.success {
  background: #27ae60;
  border-left: 4px solid #229954;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .role-grid {
    grid-template-columns: 1fr;
  }
  
  .language-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .language-selection,
  .features {
    padding: 40px 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }
  
  .broadcasting-interface,
  .listening-interface {
    width: 95%;
    max-height: 95vh;
  }
  
  .content {
    padding: 20px;
  }
  
  .role-btn {
    padding: 20px;
  }
  
  .role-btn .icon {
    font-size: 24px;
    margin-right: 15px;
  }
  
  .role-btn .title {
    font-size: 16px;
  }
  
  .role-card {
    padding: 30px 20px;
  }
  
  .role-card h3 {
    font-size: 1.5rem;
  }
  
  .role-card p {
    font-size: 1rem;
  }
  
  .translator-header {
    flex-direction: column;
    text-align: center;
  }
  
  .role-btn .desc {
    font-size: 12px;
  }
}

/* Connection status styles */
.connection-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Removed .connected styling to eliminate green bubble for "Status: Connected" */

.connection-status.disconnected {
  background-color: #f44336;
  color: white;
}

.connection-status.reconnecting {
  background-color: #ff9800;
  color: white;
  animation: pulse 1.5s infinite;
}

/* Status text styles to match translator side styling */
.status-text {
  font-weight: 600;
  color: #333;
}

.status-text.disconnected {
  color: #f44336;
}

.status-text.reconnecting {
  color: #ff9800;
}

/* Reconnection section styles */
.reconnect-section {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.reconnect-section h3 {
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.reconnect-section p {
  color: #856404;
  margin: 0 0 15px 0;
  font-size: 14px;
}

.reconnect-section .btn {
  background: #ffc107;
  color: #212529;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.reconnect-section .btn:hover {
  background: #e0a800;
}

/* Note: Clear chat button styles removed - no HTML element uses this class */