/* Violation Report Modal Styles */
.violation-report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.violation-report-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.violation-report-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.violation-report-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.violation-report-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-radius: 16px 16px 0 0;
}

.violation-report-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.violation-report-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.violation-report-close:hover {
  background-color: #f3f4f6;
}

.violation-report-close svg {
  stroke: #6b7280;
}

.violation-report-body {
  padding: 24px;
}

.violation-report-info {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.violation-report-info-icon {
  flex-shrink: 0;
  font-size: 20px;
}

.violation-report-info-text {
  font-size: 14px;
  color: #92400e;
  line-height: 1.6;
}

.violation-report-form-group {
  margin-bottom: 20px;
}

.violation-report-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.violation-report-label .required {
  color: #ef4444;
}

.violation-report-input,
.violation-report-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #f9fafb;
}

.violation-report-input:disabled {
  background-color: #e5e7eb;
  cursor: not-allowed;
  color: #6b7280;
}

.violation-report-input:focus,
.violation-report-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: white;
}

.violation-report-textarea {
  resize: vertical;
  min-height: 120px;
}

.violation-report-file-upload {
  position: relative;
}

.violation-report-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.violation-report-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #f9fafb;
}

.violation-report-file-label:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.violation-report-file-icon {
  font-size: 20px;
}

.violation-report-file-text {
  font-size: 14px;
  color: #6b7280;
}

.violation-report-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.violation-report-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
}

.violation-report-file-name {
  color: #374151;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.violation-report-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.violation-report-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.violation-report-submit-btn,
.violation-report-cancel-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.violation-report-submit-btn {
  background-color: #ef4444;
  color: white;
}

.violation-report-submit-btn:hover:not(:disabled) {
  background-color: #dc2626;
}

.violation-report-submit-btn:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
}

.violation-report-cancel-btn {
  background-color: #f3f4f6;
  color: #374151;
}

.violation-report-cancel-btn:hover {
  background-color: #e5e7eb;
}

.violation-report-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  white-space: pre-line;
  line-height: 1.6;
}

.violation-report-message.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.violation-report-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 640px) {
  .violation-report-content {
    width: 95%;
    max-height: 95vh;
  }

  .violation-report-header,
  .violation-report-body {
    padding: 16px;
  }

  .violation-report-actions {
    flex-direction: column;
  }
}
/* Ad Card Styles for Ticket Messages - Simplified */
.ticket-history-ad-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 300px;
  display: inline-block;
}

.ticket-history-ad-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.ticket-history-ad-card-content {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-history-ad-card-icon {
  width: 16px;
  height: 16px;
  color: #3b82f6;
  flex-shrink: 0;
}

.ticket-history-ad-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-history-ad-card-external {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ticket-history-ad-card {
    max-width: 100%;
  }
}
