/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

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

.speaker-panel,
.listener-panel {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.header-logo {
  max-width: 150px;
  height: auto;
}

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

.btn-logout {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

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

.btn-large {
  padding: 20px 40px;
  font-size: 1.3rem;
}

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

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

.btn-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

.icon {
  font-size: 1.5rem;
}

.status {
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.status-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  font-size: 1.1rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.status-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.info-box {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
}

.info-box h3 {
  color: #333;
  margin-bottom: 15px;
}

.info-box ol {
  padding-left: 20px;
  color: #555;
}

.info-box li {
  margin: 8px 0;
  line-height: 1.6;
}

.transcription-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.transcription-box h3 {
  color: #333;
  margin-bottom: 15px;
}

#transcription {
  min-height: 100px;
  color: #555;
  line-height: 1.8;
}

/* Listener page styles */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #666;
}

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

.dot.connected {
  background: #28a745;
}

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

.translation-feed {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
}

.no-translations {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px;
}

.translation-item {
  background: white;
  border-left: 4px solid #667eea;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

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

.translation-text {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.translation-time {
  font-size: 0.85rem;
  color: #999;
  text-align: right;
}

/* Continuous text styles */
.continuous-text {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.8;
  word-wrap: break-word;
}

/* New text bold animation */
.new-text {
  font-weight: 700;
  animation: fadeBold 3s ease forwards;
}

@keyframes fadeBold {
  0% {
    font-weight: 700;
  }
  100% {
    font-weight: 400;
  }
}

/* PIN Login Form Styles */
.pin-form {
  max-width: 400px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.3rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 600;
  transition: border-color 0.3s ease;
}

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

.form-input.input-error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-input.input-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.pin-input {
  font-family: 'Courier New', monospace;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.info-box code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .continuous-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .translation-text {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .speaker-panel,
  .listener-panel {
    padding: 20px;
  }
}
