/* RadioPub Styles */

.radiopub-add {
  animation: fadeIn 0.3s ease;
}

.radiopub-form-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.radiopub-form-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

.radiopub-form {
  max-width: 900px;
  margin: 0 auto;
}

/* Form Groups */
.radiopub-form-group {
  margin-bottom: 1.5rem;
}

.radiopub-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.radiopub-form-group label i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.radiopub-form-input,
.radiopub-form-select,
.radiopub-form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.radiopub-form-input:focus,
.radiopub-form-select:focus,
.radiopub-form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radiopub-form-textarea {
  resize: vertical;
}

.radiopub-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  background: white;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  border-color: var(--color-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-search {
  width: calc(100% - 1rem);
  margin: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: var(--color-primary-light);
}

/* Autocomplete Styles */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-icon {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  color: var(--color-gray-400);
  pointer-events: none;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: var(--color-gray-50);
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--color-gray-100);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--color-gray-50);
}

.autocomplete-item i {
  color: var(--color-primary);
  font-size: 1rem;
}

.autocomplete-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.autocomplete-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-900);
}

.selected-vehicle {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #e8f5e9;
  border: 1px solid var(--color-success);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-vehicle i {
  color: var(--color-success);
  font-size: 1rem;
}

.selected-vehicle span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2e7d32;
}

.clear-selection {
  background: transparent;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-selection:hover {
  color: #8B0000;
  transform: scale(1.1);
}

/* Content Sections */
.content-section {
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Quiz Section */
.quiz-section {
  padding: 0;
  background: transparent;
}

.quiz-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .quiz-container {
    grid-template-columns: 1fr;
  }
}

.quiz-form,
.quiz-preview {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-gray-200);
}

/* Questions Container */
.questions-container {
  margin-bottom: 1.5rem;
}

.question-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-300);
}

.question-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.btn-remove {
  background: var(--color-danger);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-remove:hover {
  background: var(--color-danger-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Pagination */
.pagination-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--color-gray-50);
  border-radius: 0.5rem;
}

.btn-pagination {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pagination:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  font-weight: 500;
}

.btn-add-question {
  width: 100%;
  background: var(--color-success);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-question:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-load-json {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-load-json:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-export-json {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-export-json:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-export-json:disabled {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-export-json:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Quiz Preview */
.quiz-preview {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.quiz-preview h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-content {
  background: var(--color-gray-50);
  padding: 1rem;
  border-radius: 0.5rem;
}

.preview-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.preview-question {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-gray-200);
}

.question-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.preview-propositions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-option {
  display: flex;
  align-items: center;
}

.preview-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  cursor: pointer;
  margin: 0;
}

.preview-option input[type="radio"] {
  cursor: pointer;
}

.no-preview {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
  padding: 2rem;
}

/* Form Actions */
.radiopub-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
}

.btn-reset {
  background: var(--color-gray-500);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reset:hover {
  background: var(--color-gray-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit .fa-spinner {
  animation: spin 1s linear infinite;
}

/* List Tab */
.radiopub-list {
  animation: fadeIn 0.3s ease;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.btn-refresh {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-refresh:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Date Range Filter */
.date-range-filter {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.date-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-field label i {
  color: var(--color-primary);
  font-size: 1rem;
}

.date-input {
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  transition: all 0.2s ease;
  background: white;
}

.date-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-apply-filter,
.btn-reset-filter {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-apply-filter {
  background: var(--color-primary);
  color: white;
}

.btn-apply-filter:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-reset-filter {
  background: var(--color-gray-200);
  color: var(--color-gray-700);
}

.btn-reset-filter:hover:not(:disabled) {
  background: var(--color-gray-300);
  transform: translateY(-1px);
}

.btn-apply-filter:disabled,
.btn-reset-filter:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Table Container with Horizontal Scroll */
.table-container {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin-bottom: 2rem;
}

.radiopub-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
}

.radiopub-table thead {
  background: var(--color-gray-100);
  position: sticky;
  top: 0;
  z-index: 10;
}

.radiopub-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  border-bottom: 2px solid var(--color-gray-300);
  white-space: nowrap;
}

.radiopub-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background 0.2s ease;
}

.radiopub-table tbody tr:hover {
  background: var(--color-gray-50);
}

.radiopub-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  vertical-align: middle;
  white-space: nowrap;
}

.radiopub-table td strong {
  color: var(--color-gray-900);
}

/* Message Buttons */
.btn-message {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-message.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-message.btn-success:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-message.btn-warning {
  background: var(--color-warning);
  color: white;
}

.btn-message.btn-warning:hover {
  background: var(--color-warning-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Media Link */
.media-link {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.media-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.text-muted {
  color: var(--color-gray-400);
}

/* Broadcast Badge */
.broadcast-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.broadcast-badge.broadcast-on {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.broadcast-badge.broadcast-off {
  background: var(--color-gray-200);
  color: var(--color-gray-600);
}

/* Action Menu */
.action-menu {
  position: relative;
}

.btn-menu {
  background: var(--color-gray-100);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-gray-700);
}

.btn-menu:hover {
  background: var(--color-gray-200);
}

.action-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.action-dropdown button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.action-dropdown button:hover {
  background: var(--color-gray-50);
}

.action-dropdown button.danger {
  color: var(--color-danger);
}

.action-dropdown button.danger:hover {
  background: var(--color-danger-light);
}

/* Badge Styles for Table */
.pub-type-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pub-type-badge.type-text {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.pub-type-badge.type-audio {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.pub-type-badge.type-quiz {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.pub-status {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.pub-status.active {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.pub-status.inactive {
  background: var(--color-gray-200);
  color: var(--color-gray-600);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert.alert-success {
  background: var(--color-success-light);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success);
}

.alert.alert-error {
  background: var(--color-danger-light);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-gray-500);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .date-range-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .date-field {
    min-width: 100%;
  }

  .btn-apply-filter,
  .btn-reset-filter {
    width: 100%;
    justify-content: center;
  }

  .list-header {
    flex-direction: column;
    gap: 1rem;
  }

  .search-field {
    width: 100%;
  }

  .btn-refresh {
    width: 100%;
  }
}

/* Status Validation Modal */
.status-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.status-modal {
  background: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.status-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  background: linear-gradient(135deg, var(--color-primary) 0%, #be0606 100%);
  border-radius: 1rem 1rem 0 0;
  color: white;
}

.status-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.status-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.status-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.status-modal-body {
  padding: 1.5rem;
}

.status-info-card {
  background: var(--color-gray-50);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.status-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.status-date {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.unknown {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.status-badge.created {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.paied {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.validated {
  background: #d1fae5;
  color: #065f46;
}

.status-action-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.status-action-btn.primary {
  background: var(--color-primary);
  color: white;
}

.status-action-btn.primary:hover {
  background: #a10505;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 6, 6, 0.3);
}

.status-action-btn.disabled {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  cursor: not-allowed;
}

.status-action-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.payment-section {
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.payment-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 1rem;
}

.payment-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.audience-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.audience-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.audience-label {
  padding: 0.75rem 1rem;
  background: var(--color-gray-200);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.qrcode-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
}

/* Status History Timeline */
.status-history {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-gray-200);
}

.status-history-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-timeline {
  position: relative;
  padding-left: 2rem;
}

.status-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-200);
}

.status-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.status-timeline-item:last-child {
  padding-bottom: 0;
}

.status-timeline-dot {
  position: absolute;
  left: -1.6rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--color-gray-300);
}

.status-timeline-dot.created {
  background: #f59e0b;
  box-shadow: 0 0 0 2px #fef3c7;
}

.status-timeline-dot.paied {
  background: #3b82f6;
  box-shadow: 0 0 0 2px #dbeafe;
}

.status-timeline-dot.validated {
  background: #10b981;
  box-shadow: 0 0 0 2px #d1fae5;
}

.status-timeline-content {
  background: var(--color-gray-50);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-gray-300);
}

.status-timeline-content.created {
  border-left-color: #f59e0b;
}

.status-timeline-content.paied {
  border-left-color: #3b82f6;
}

.status-timeline-content.validated {
  border-left-color: #10b981;
}

.status-timeline-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.status-timeline-date {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.status-timeline-user {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .status-modal {
    width: 95%;
    max-height: 95vh;
  }

  .status-modal-header {
    padding: 1rem;
  }

  .status-modal-body {
    padding: 1rem;
  }

  .status-timeline {
    padding-left: 1.5rem;
  }

  .status-timeline-dot {
    left: -1.35rem;
  }
}

/* Confirmation Modal */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: fadeIn 0.3s ease;
}

.confirm-modal {
  background: white;
  border-radius: 1.25rem;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
  text-align: center;
}

.confirm-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #8B0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(179, 27, 31, 0.3);
}

.confirm-modal-icon i {
  font-size: 2.5rem;
  color: white;
}

.confirm-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.confirm-modal-message {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.confirm-modal-message strong {
  color: #2d3748;
  font-weight: 600;
}

.confirm-modal-details {
  background: #f7fafc;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.confirm-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #2d3748;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.confirm-detail:last-child {
  margin-bottom: 0;
}

.confirm-detail i {
  color: var(--color-primary);
  font-size: 1.1rem;
  width: 20px;
}

.confirm-modal-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  color: #c53030;
  font-size: 0.9rem;
  font-weight: 500;
}

.confirm-modal-warning i {
  font-size: 1.25rem;
}

.confirm-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-cancel {
  background: #edf2f7;
  color: #4a5568;
}

.btn-cancel:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8B0000 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(179, 27, 31, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(179, 27, 31, 0.4);
}

.btn-cancel:active,
.btn-confirm:active {
  transform: translateY(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .confirm-modal {
    padding: 2rem;
    max-width: 95%;
  }

  .confirm-modal-icon {
    width: 70px;
    height: 70px;
  }

  .confirm-modal-icon i {
    font-size: 2rem;
  }

  .confirm-modal-title {
    font-size: 1.5rem;
  }

  .confirm-modal-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  min-width: 350px;
  max-width: 450px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  z-index: 2000;
  animation: slideInRight 0.3s ease;
}

.toast-notification.success {
  border-left: 4px solid var(--color-success);
}

.toast-notification.error {
  border-left: 4px solid var(--color-error);
}

.toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-notification.success .toast-icon {
  background: rgba(0, 166, 81, 0.1);
  color: var(--color-success);
}

.toast-notification.error .toast-icon {
  background: rgba(179, 27, 31, 0.1);
  color: var(--color-error);
}

.toast-icon i {
  font-size: 1.5rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.toast-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-gray-100);
  border-radius: 50%;
  color: var(--color-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .toast-notification {
    top: 60px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}

/* JSON Modal */
.json-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.json-modal {
  background: white;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.json-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.json-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.json-modal-header h2 i {
  color: #8b5cf6;
}

.json-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-gray-100);
  border-radius: 50%;
  color: var(--color-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.json-modal-close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

.json-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.json-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 0.5rem;
  border-left: 4px solid #3b82f6;
}

.json-info i {
  color: #3b82f6;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.json-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #1e40af;
  font-weight: 500;
}

.json-example {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.json-example pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.json-textarea {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  background: #f8fafc;
}

.json-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 0.5rem;
  border-left: 4px solid #ef4444;
  margin-top: 1rem;
}

.json-error i {
  color: #ef4444;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.json-error {
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 500;
}

.json-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

@media (max-width: 768px) {
  .json-modal {
    max-width: 95%;
    max-height: 95vh;
  }

  .json-modal-header,
  .json-modal-body,
  .json-modal-footer {
    padding: 1rem;
  }

  .json-modal-footer {
    flex-direction: column;
  }

  .json-modal-footer .btn-cancel,
  .json-modal-footer .btn-confirm {
    width: 100%;
  }
}
