body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}
#login-container, #main-container {
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
button {
  width: 100%;
  padding: 12px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #b71c1c;
}
button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}
.button-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: #6c757d;
  width: 100%;
  padding: 12px;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}
.button-link:hover {
  background: #5a6268;
}

/* Estilos para os streams */
.stream-item {
  background: #f8f9fa;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.stream-item strong {
  color: #343a40;
  font-size: 18px;
}

/* Seção do link da transmissão */
.link-section {
  margin: 12px 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.link-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #495057;
  font-size: 14px;
}

.link-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  font-size: 14px;
  font-family: monospace;
  color: #495057;
  margin: 0;
}

.copy-btn {
  width: auto;
  padding: 8px 16px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
  min-width: 80px;
}

.copy-btn:hover {
  background: #138496;
}

.copy-success {
  background: #28a745 !important;
}

.copy-error {
  background: #dc3545 !important;
}

/* Container para ações */
.actions {
  margin-top: 12px;
}

/* Botões de transmissão */
.start-btn, .end-btn {
  width: auto;
  padding: 8px 16px;
  margin: 8px 8px 0 0;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.start-btn {
  background: #28a745;
  color: white;
}

.start-btn:hover:not(:disabled) {
  background: #218838;
}

.start-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.end-btn {
  background: #dc3545;
  color: white;
}

.end-btn:hover:not(:disabled) {
  background: #c82333;
}

.end-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* Indicadores de status */
.status-ready {
  color: #28a745;
  font-weight: bold;
}

.status-created {
  color: #007bff;
  font-weight: bold;
}

.status-live {
  color: #dc3545;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.status-complete {
  color: #6c757d;
  font-weight: bold;
}

.status-testing {
  color: #ffc107;
  font-weight: bold;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@media (max-width: 500px) {
  #login-container, #main-container {
    margin: 10px;
    padding: 12px;
  }
  h2 {
    font-size: 20px;
  }
  .stream-item {
    padding: 12px;
  }
  
  .link-section {
    padding: 8px;
    margin: 8px 0;
  }
  
  .link-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .link-input {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .copy-btn {
    width: 100%;
    margin: 0;
  }
  
  .start-btn, .end-btn {
    width: calc(50% - 4px);
    margin: 8px 4px 0 0;
  }
}

/* Modal de Progresso */
.progress-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.progress-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .progress-modal-content {
    margin: 2% auto;
    padding: 20px;
    width: 95%;
    max-height: 95vh;
  }
  
  .progress-modal h3 {
    font-size: 20px;
  }
  
  .progress-step {
    padding: 10px;
  }
  
  .progress-step-text {
    font-size: 14px;
  }
}

.progress-modal h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.progress-steps {
  margin: 20px 0;
}

.progress-step {
  display: flex;
  align-items: center;
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.progress-step.completed {
  background: #e8f5e8;
  border-left: 4px solid #4caf50;
}

.progress-step.error {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

.progress-step-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.progress-step.pending .progress-step-icon {
  background: #e0e0e0;
  color: #757575;
}

.progress-step.active .progress-step-icon {
  background: #2196f3;
  color: white;
  animation: pulse 1.5s infinite;
}

.progress-step.completed .progress-step-icon {
  background: #4caf50;
  color: white;
}

.progress-step.error .progress-step-icon {
  background: #f44336;
  color: white;
}

.progress-step-text {
  flex: 1;
  text-align: left;
  font-size: 16px;
  color: #333;
}

.progress-step.active .progress-step-text {
  font-weight: 600;
  color: #1976d2;
}

.progress-step.completed .progress-step-text {
  color: #2e7d32;
}

.progress-step.error .progress-step-text {
  color: #c62828;
}

.progress-details {
  margin-top: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  text-align: left;
}

.progress-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.progress-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: auto;
  padding: 0;
  margin: 0;
}

.progress-close-btn:hover {
  color: #333;
  background: none;
}

.progress-error-details {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  text-align: left;
}

.progress-error-details h4 {
  color: #c62828;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.progress-error-details ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.progress-error-details li {
  margin: 5px 0;
} 