body {
  font-family: Arial, sans-serif;
  margin: 2rem;
  background: #e0f2fe;
  transition: background-color 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

h1 {
  color: #1e3a8a;
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
}

.settings-btn {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s;
  margin: 0;
}

.settings-btn:hover {
  background-color: #4b5563;
}

.lang-toggle {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s;
  margin: 0;
}

.lang-toggle:hover {
  background-color: #059669;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .modal {
    padding: 0.5rem;
    align-items: flex-start;
    overflow-y: auto;
  }
}

.modal-content h2 {
  margin-top: 0;
  color: #1e3a8a;
}

.setting-section {
  margin: 1.5rem 0;
}

.setting-section h3 {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.setting-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.help-text {
  display: block;
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-style: italic;
}

.credential-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.connection-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.radio-label:hover {
  border-color: #2563eb;
  background-color: #f0f9ff;
}

.radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
  font-weight: bold;
  color: #2563eb;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.modal-actions button {
  flex: 1;
  margin: 0;
}

.secondary-btn {
  background-color: #e5e7eb;
  color: #374151;
}

.secondary-btn:hover {
  background-color: #d1d5db;
}

.audio-recorder {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.recorder-controls, .playback-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.record-btn, .play-btn, .delete-btn, .append-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.record-btn {
  background: #ef4444;
  color: white;
}

.record-btn:hover {
  background: #dc2626;
}

.record-btn.secondary-action {
  background: #6b7280;
}

.record-btn.secondary-action:hover {
  background: #4b5563;
}

.play-btn {
  background: #10b981;
  color: white;
}

.play-btn:hover {
  background: #059669;
}

.delete-btn {
  background: #f87171;
  color: white;
}

.delete-btn:hover {
  background: #ef4444;
}

.append-btn {
  background: #3b82f6;
  color: white;
}

.append-btn:hover {
  background: #2563eb;
}

.recording-time, .playback-time {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1e3a8a;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
}

.recording-time {
  animation: pulse 1.5s ease-in-out infinite;
}

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

.input-block {
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.input-block h3 {
  margin: 0 0 1rem 0;
  color: #1e3a8a;
  font-size: 1.1rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d1d5db;
}

.divider span {
  padding: 0 1rem;
  font-style: italic;
}

.camera-section {
  margin: 1rem 0;
}

.media-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.camera-btn, .video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #8b5cf6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.5rem 0;
}

.camera-btn:hover, .video-btn:hover {
  background: #7c3aed;
}

.camera-preview {
  background: #1f2937;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

#cameraVideo {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.camera-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.capture-btn:hover {
  background: #059669;
}

.close-camera-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.close-camera-btn:hover {
  background: #4b5563;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.photo-item {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
}

.photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.photo-item .delete-photo-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-item .delete-photo-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.photo-item .photo-source {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

label, input, button {
  display: block;
  margin: 1rem 0;
}
button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background-color: #1d4ed8;
}
#status {
  margin-top: 1rem;
  font-weight: bold;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}
.tab-btn {
  background-color: transparent;
  color: #666;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.7rem 1.5rem;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
}
.tab-btn.active {
  color: #1e3a8a;
  border-bottom-color: #2563eb;
  font-weight: bold;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.history-header h2 {
  margin: 0;
  color: #1e3a8a;
}
#refreshBtn {
  background-color: #10b981;
  padding: 0.5rem 1rem;
  margin: 0;
}

.report-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.report-card h3 {
  margin-top: 0;
  color: #1e3a8a;
}
.report-meta {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}
.report-summary {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
}
.report-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.report-actions button {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.delete-btn {
  background-color: #ef4444;
}
.delete-btn:hover {
  background-color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #999;
}
.empty-state p {
  font-size: 1.1rem;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}
.file-button {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
  display: inline-block;
}
.file-button:hover {
  background-color: #4b5563;
}
.file-name {
  color: #666;
  font-size: 0.9rem;
  display: inline-block;
}

/* Video recording styles */
.video-preview {
  background: #1f2937;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

#videoRecorder {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.video-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.video-record-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.video-record-btn:hover {
  background: #dc2626;
}

.video-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.video-stop-btn:hover {
  background: #4b5563;
}

.close-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.close-video-btn:hover {
  background: #4b5563;
}

.video-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ef4444;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  animation: pulse 1.5s ease-in-out infinite;
}

.video-gallery {
  margin: 1rem 0;
}

.video-list {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.video-list h4 {
  margin: 0 0 1rem 0;
  color: #1e3a8a;
}


/* Email signature textarea styling */
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 100px;
}

textarea:focus {
  outline: none;
  border-color: #2563eb;
}

/* Report preview section styling */
#reportPreviewSection {
  background: #f0f9ff;
  border: 2px solid #2563eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

#reportPreviewSection h3 {
  color: #1e3a8a;
  margin-top: 0;
  margin-bottom: 1rem;
}

#reportPreviewContent {
  margin: 1rem 0;
  font-size: 1.1rem;
}

#reportPreviewContent a {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

#reportPreviewContent a:hover {
  text-decoration: underline;
}

#sendReportBtn {
  margin-top: 1rem;
  background: #10b981;
}

#sendReportBtn:hover {
  background: #059669;
}

/* Audio added indicator styling */
.audio-added-indicator {
  background: #d1fae5;
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.audio-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: bold;
  color: #065f46;
  font-size: 1.1rem;
}

.audio-badge .check-icon {
  font-size: 1.5rem;
}

/* Clear file button styling */
.clear-file-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  transition: background-color 0.2s;
}

.clear-file-btn:hover {
  background-color: #dc2626;
}

.clear-file-btn span:first-child {
  font-size: 1rem;
}

/* Multiple audio recordings container */
.recorded-audios-container {
  margin-top: 1rem;
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 1rem;
}

.recorded-audios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #1e40af;
}

.audio-count {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.recorded-audios-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audio-item {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem;
}

.audio-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.audio-title {
  font-weight: 600;
  color: #1e293b;
}

.audio-duration {
  color: #64748b;
  font-size: 0.9rem;
}

.audio-item-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.play-audio-btn,
.append-audio-btn,
.delete-audio-btn {
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}

.play-audio-btn {
  background-color: #3b82f6;
  color: white;
}

.play-audio-btn:hover {
  background-color: #2563eb;
}

.append-audio-btn {
  background-color: #10b981;
  color: white;
}

.append-audio-btn:hover {
  background-color: #059669;
}

.delete-audio-btn {
  background-color: #ef4444;
  color: white;
}

.delete-audio-btn:hover {
  background-color: #dc2626;
}

/* Compact audio items - thumbnail view */
.audio-item-compact {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.audio-compact-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.audio-compact-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-compact-duration {
  color: #64748b;
  font-size: 0.8rem;
}

.audio-compact-controls {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.audio-compact-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.audio-compact-btn.play-audio-btn {
  background-color: #3b82f6;
  color: white;
}

.audio-compact-btn.play-audio-btn:hover {
  background-color: #2563eb;
}

.audio-compact-btn.append-audio-btn {
  background-color: #10b981;
  color: white;
}

.audio-compact-btn.append-audio-btn:hover {
  background-color: #059669;
}

.audio-compact-btn.delete-audio-btn {
  background-color: #ef4444;
  color: white;
}

.audio-compact-btn.delete-audio-btn:hover {
  background-color: #dc2626;
}

.audio-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #cbd5e1;
}

.new-recording-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
  width: 100%;
  justify-content: center;
}

.new-recording-btn:hover {
  background-color: #2563eb;
}

/* Photos container - light orange */
.photos-container {
  margin-top: 1rem;
  background: #fed7aa;
  border: 2px solid #fb923c;
  border-radius: 8px;
  padding: 1rem;
}

.photos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #9a3412;
}

.photo-count {
  background: #fb923c;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Multiple video recordings container */
.recorded-videos-container {
  margin-top: 1rem;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
}

.recorded-videos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #92400e;
}

.video-count {
  background: #f59e0b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Video thumbnail grid - matching photo style */
.recorded-videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.video-thumbnail-item {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
}

.video-thumbnail-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.video-thumbnail-item .delete-video-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.video-thumbnail-item .delete-video-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.video-thumbnail-item .append-video-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.video-thumbnail-item .append-video-btn:hover {
  background: #059669;
  transform: scale(1.1);
}

.video-thumbnail-item .video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

.video-thumbnail-item .clip-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.95);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Audio thumbnail grid - matching photo/video style */
.recorded-audios-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.audio-thumbnail-item {
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
}

.audio-thumbnail-visual {
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.audio-thumbnail-visual .audio-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.audio-thumbnail-visual .audio-duration {
  color: white;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(0,0,0,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.audio-thumbnail-item .delete-audio-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.audio-thumbnail-item .delete-audio-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.audio-thumbnail-item .play-audio-btn {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.audio-thumbnail-item .play-audio-btn:hover {
  background: #2563eb;
  transform: translateX(-50%) scale(1.1);
}

.audio-thumbnail-item .append-audio-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.audio-thumbnail-item .append-audio-btn:hover {
  background: #059669;
  transform: scale(1.1);
}

.audio-thumbnail-item .audio-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

/* Video modal for full view */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.video-modal-content {
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  background: #dc2626;
}

.video-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #cbd5e1;
}

.new-video-btn {
  background-color: #f59e0b;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
  width: 100%;
  justify-content: center;
}

.new-video-btn:hover {
  background-color: #d97706;
}

/* PWA Offline Mode Styles */
body.offline {
  background: #fef3c7;
}

body.offline::before {
  content: "📡 Offline Mode - Your work will sync when back online";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f59e0b;
  color: white;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.offline .header {
  margin-top: 3rem;
}

/* PWA Install Button (optional) */
.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #667eea;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

.install-prompt.show {
  display: flex;
}

.install-prompt button {
  background: white;
  color: #667eea;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.install-prompt button:hover {
  background: #f0f4ff;
}

.install-prompt .close {
  background: transparent;
  color: white;
  border: 1px solid white;
}

/* Offline Queue Indicator */
.queue-indicator {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 9998;
  font-size: 0.9rem;
  font-weight: 600;
}

.queue-indicator.show {
  display: flex;
}

.queue-indicator.syncing {
  background: #3b82f6;
}

/* PWA Splash Screen Styles */
@media screen and (min-width: 768px) {
  .install-prompt {
    bottom: 40px;
  }
}


/* Report action buttons layout */
.report-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.report-actions button {
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.primary-action {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.secondary-action {
  background-color: #10b981;
  color: white;
}

.secondary-action:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.tertiary-action {
  background-color: #6b7280;
  color: white;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
}

.tertiary-action:hover {
  background-color: #4b5563;
}

@media (min-width: 768px) {
  .report-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .report-actions button {
    flex: 1;
    max-width: 250px;
  }
}



/* Mobile responsive improvements for settings modal */
@media (max-width: 768px) {
  .setting-section {
    margin: 1rem 0;
  }
  
  .setting-section h3 {
    font-size: 0.95rem;
  }
  
  .modal-content h2 {
    font-size: 1.3rem;
  }
  
  .credential-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .credential-actions button {
    width: 100%;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions button {
    width: 100%;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

