* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated background stars */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 60% 70%, white, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 50% 50%, white, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 80% 10%, white, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 90% 60%, white, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 30% 80%, white, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 10% 90%, white, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 40% 20%, white, rgba(255,255,255,0)),
    radial-gradient(1px 1px at 70% 40%, white, rgba(255,255,255,0)),
    radial-gradient(2px 2px at 15% 60%, white, rgba(255,255,255,0));
  background-size: 200% 200%, 300% 300%, 250% 250%, 220% 220%, 280% 280%, 
                   260% 260%, 240% 240%, 270% 270%, 290% 290%, 210% 210%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%,
                       0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  animation: twinkle 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    background-position: 
      0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%,
      0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  50% {
    opacity: 1;
    background-position: 
      100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
      100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }
}

/* Floating particles */
.star {
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 4px rgba(255,255,255,0.8);
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(168, 85, 247, 0.3);
  max-width: 900px;
  width: 100%;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
}

h1 {
  color: #6366f1;
  margin-bottom: 10px;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.subtitle {
  color: #7c3aed;
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 500;
}

.status-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-left: 4px solid #6366f1;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.status-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.label {
  color: #7c3aed;
  font-weight: 600;
}

.value {
  color: #5b21b6;
  font-family: monospace;
  font-weight: bold;
  background: rgba(99, 102, 241, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
}

.status-online {
  color: #28a745;
}

.status-offline {
  color: #dc3545;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5558e3, #7c3aed);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.info-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border-left: 4px solid #6366f1;
  padding: 15px;
  margin-top: 20px;
  border-radius: 12px;
  color: #5b21b6;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
}

.transcripts-section {
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
  padding-top: 30px;
}

.transcripts-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.transcript-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 232, 255, 0.5));
  border-left: 4px solid #a855f7;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.transcript-item:hover {
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.transcript-header h3 {
  color: #5b21b6;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.transcript-date {
  color: #a78bfa;
  font-size: 0.85rem;
}

.transcript-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.transcript-link:hover {
  color: #a855f7;
  text-decoration: underline;
  transform: translateX(2px);
}

.transcript-detail {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transcript-header {
  border-bottom: 2px solid #a855f7;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.transcript-header h1 {
  color: #5b21b6;
  margin: 0 0 15px 0;
  font-size: 2rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.transcript-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  color: #6b21a8;
  font-size: 0.95rem;
}

.meta-item strong {
  color: #5b21b6;
  margin-right: 8px;
  font-weight: 600;
}

.transcript-body {
  line-height: 1.8;
  color: #4b5563;
  font-size: 1rem;
}

.transcript-body p {
  margin: 12px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-message {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 1.1rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.transcripts-section {
  margin-top: 30px;
  border-top: 2px solid rgba(99, 102, 241, 0.2);
  padding-top: 30px;
}

.transcripts-section h2 {
  color: #6366f1;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

.transcript-list {
  display: grid;
  gap: 15px;
}

/* Scrollbar styling */
.container::-webkit-scrollbar {
  width: 10px;
}

.container::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
}

.container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5558e3, #9333ea);
}
