body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f0f0f0;
}
.container {
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
}
.connection-selector {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 5px;
}
.connection-selector input {
  padding: 8px 15px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  margin-right: 10px;
  width: 200px;
}
.connection-selector button {
  padding: 8px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.connection-selector button:hover {
  background-color: #0056b3;
}
.topic-selector {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 5px;
}
.topic-selector input {
  padding: 8px 15px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  margin-right: 10px;
  width: 200px;
}
.topic-selector button {
  padding: 8px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.topic-selector button:hover {
  background-color: #0056b3;
}
.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}
.stat-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
}
.streams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.stream-container {
  text-align: center;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 15px;
  background-color: #f8f9fa;
}
.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}
.stream-title {
  font-weight: bold;
  color: #007bff;
}
.stream-controls {
  display: flex;
  gap: 5px;
}
.stream-controls button {
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.btn-remove {
  background-color: #dc3545;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}
.btn-remove:hover {
  background-color: #c82333;
  transform: scale(1.1);
}
.stream-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.stream-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.stream-stats {
  margin-top: 10px;
  font-size: 12px;
  color: #6c757d;
}
.status {
  border-radius: 5px;
  text-align: center;
}
.status.connected {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.status.disconnected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.controls {
  text-align: center;
  margin: 20px 0;
}
.btn {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary {
  background-color: #007bff;
  color: white;
}
.btn-primary:hover {
  background-color: #0056b3;
}
.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
}
.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.add-stream {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  border: 2px dashed #007bff;
}
.add-stream input {
  padding: 8px 15px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  margin: 5px;
  width: 200px;
}
.add-stream button {
  padding: 8px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
}
.add-stream button:hover {
  background-color: #218838;
}
.no-streams-message {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  color: #6c757d;
}
.no-streams-message h3 {
  color: #495057;
  margin-bottom: 15px;
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.fullscreen-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fullscreen-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  z-index: 1001;
}

.fullscreen-title {
  font-size: 18px;
  font-weight: bold;
}

.fullscreen-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
}

.fullscreen-close {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-close:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

.fullscreen-refresh {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-refresh:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.fullscreen-image {
  max-width: 95%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}
