/* app/static/css/issue_report.css */
/**
 * Issue Report Styles
 * Floating Action Button and Modal for reporting issues
 */

/* ===== Floating Action Button ===== */
.issue-report-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 997;
  font-size: 24px;
  line-height: 1;
}

/* When inside fab-container, use static positioning */
.fab-container .issue-report-fab {
  position: static;
}

.issue-report-fab:hover {
  background: #c82333;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
  transform: scale(1.1);
}

.issue-report-fab:active {
  transform: scale(0.95);
}

/* Mobile adjustments - when standalone (not in container) */
@media (max-width: 768px) {
  .issue-report-fab:not(.fab-container .issue-report-fab) {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* ===== Modal ===== */
.issue-report-modal {
  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: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.issue-report-modal.open {
  opacity: 1;
  visibility: visible;
}

.issue-report-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.issue-report-modal.open .issue-report-modal-content {
  transform: translateY(0);
}

.issue-report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.issue-report-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.issue-report-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
  line-height: 1;
}

.issue-report-modal-close:hover {
  color: #333;
}

.issue-report-modal-body {
  padding: 20px;
}

/* Form Styles */
.issue-report-field {
  margin-bottom: 16px;
}

.issue-report-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.issue-report-field input,
.issue-report-field select,
.issue-report-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.issue-report-field input:focus,
.issue-report-field select:focus,
.issue-report-field textarea:focus {
  outline: none;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.issue-report-field textarea {
  min-height: 100px;
  resize: vertical;
}

.issue-report-field small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
}

/* Screenshot attachment */
.issue-report-screenshot {
  margin-top: 8px;
}

.issue-report-screenshot-preview {
  max-width: 100%;
  max-height: 150px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin-top: 8px;
}

.issue-report-screenshot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.issue-report-screenshot-btn:hover {
  background: #5a6268;
}

/* Actions */
.issue-report-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.issue-report-actions button {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.issue-report-btn-cancel {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  color: #333;
}

.issue-report-btn-cancel:hover {
  background: #e9ecef;
}

.issue-report-btn-submit {
  background: #dc3545;
  border: none;
  color: white;
}

.issue-report-btn-submit:hover {
  background: #c82333;
}

.issue-report-btn-submit:disabled {
  background: #e4606d;
  cursor: not-allowed;
}

/* Success view */
.issue-report-success {
  text-align: center;
  padding: 20px;
}

.issue-report-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.issue-report-success h4 {
  margin: 0 0 12px;
  color: #28a745;
}

.issue-report-success p {
  color: #666;
  margin: 0;
}

/* Context info */
.issue-report-context {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.issue-report-context p {
  margin: 4px 0;
  color: #666;
}

.issue-report-context strong {
  color: #333;
}
