/* Output Section (Admin View) */
.output-section {
  grid-column: 1 / -1;
  margin-top: 20px;
}

/* Styles for New Admin Output Panel */
.admin-output-tabs {
  display: flex;
  background: #3a3a3a;
  border-bottom: 1px solid #444444;
}

.admin-output-actions {
  padding: 10px 15px;
  background: #2c2c2c;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #444444;
  position: relative;
}

.admin-output-actions-left {
  display: flex;
  align-items: center;
}

.admin-output-actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-copy-all-btn {
  background: #4CAF50;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-copy-all-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

.admin-copy-all-btn.copied {
  background: #2ecc71;
}

.admin-copy-all-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.admin-share-btn {
  background: #4CAF50;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
}

.admin-share-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

.admin-share-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.admin-share-dropdown {
  position: absolute;
  bottom: 50px;
  right: 15px;
  background: #2c2c2c;
  border: 1px solid #444444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1000;
  min-width: 160px;
  display: none;
  overflow: hidden;
}

.admin-share-option svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.admin-share-dropdown.show {
  display: block;
}

.admin-share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #e0e0e0;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.admin-share-option:hover {
  background: #3a3a3a;
}

.admin-share-option:first-child {
  border-radius: 6px 6px 0 0;
}

.admin-share-option:last-child {
  border-radius: 0 0 6px 6px;
}

.admin-output-tab-button {
  flex: 1;
  padding: 10px 15px;
  background: #333333;
  border: none;
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-right: 1px solid #444444;
  text-align: center;
}
.admin-output-tab-button:last-child {
  border-right: none;
}
.admin-output-tab-button.active {
  background: #2c2c2c;
  color: #ffffff;
  border-bottom: 2px solid #4CAF50;
}
.admin-output-tab-button:hover:not(.active) {
  background: #3f3f3f;
}

.admin-output-content-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  background: #263238;
}

.admin-transcript-content-panel {
  height: 100%;
  overflow-y: auto;
  padding: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--admin-output-font-size, 14px); /* Use CSS variable with a default fallback */
  line-height: 1.7;
  color: #e0e0e0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  display: none;
}
.admin-transcript-content-panel.active {
  display: block;
}

.admin-output-line {
  margin-bottom: 2px;
  padding: 3px 0;
  opacity: 1;
  transition: color 0.5s ease-out, opacity 0.5s ease-out;
  animation: adminOutputFadeIn 0.4s ease-out;
}

@keyframes adminOutputFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-output-line.original-text {
  color: #66bb6a;
}
.admin-output-line.translated-text {
  color: #81c784;
}
.admin-output-line.admin-message {
  color: #4CAF50;
  font-weight: 500;
  border-left: 3px solid #4CAF50;
  padding-left: 8px;
  margin-left: -8px;
}
.admin-output-line.mobile-user-message {
  color: #2196F3;
  font-weight: 500;
  border-left: 3px solid #2196F3;
  padding-left: 8px;
  margin-left: -8px;
}
.admin-output-line.newest-entry {
  font-weight: 500;
  color: #ffffff !important;
}
.admin-output-line.older-entry {
  color: #b0b0b0 !important;
}

.admin-output-empty-state {
  text-align: center;
  padding: 30px 20px;
  opacity: 0.7;
  font-size: 1em;
  color: #b0b0b0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Admin Output Container Layout */
#admin-output-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: var(--admin-output-height, 420px);
}

/* Viewer Count */
.viewer-count {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #2c2c2c;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #b0b0b0;
  transition: all 0.3s ease;
}

.viewer-count svg {
  width: 16px;
  height: 16px;
  fill: #b0b0b0;
  transition: fill 0.3s ease;
}

.viewer-count.active {
    color: #4CAF50;
}

.viewer-count.active svg {
    fill: #4CAF50;
}
