/**
 * FlagModal CSS - Dark theme styling
 * Report/Flag boulder modal
 */

/* Modal container */
.flag-modal .modal-content {
  background: rgb(33, 37, 41);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
}

/* Header */
.flag-modal .modal-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
}

.flag-modal .modal-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.flag-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.7;
}

.flag-modal .modal-header .btn-close:hover {
  opacity: 1;
}

/* Body */
.flag-modal .modal-body {
  background: rgb(33, 37, 41);
  padding: 1.25rem;
}

.flag-modal .modal-body p {
  color: rgba(255, 255, 255, 0.7);
}

.flag-modal .modal-body strong {
  color: #fff;
}

/* Radio buttons - Form.Check */
.flag-modal .form-check {
  padding: 0.5rem 0.75rem;
  margin-left: 0;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.flag-modal .form-check:hover {
  background: rgba(255, 255, 255, 0.05);
}

.flag-modal .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.flag-modal .form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.flag-modal .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  border-color: #dc3545;
}

.flag-modal .form-check-label {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding-left: 0.5rem;
}

/* Textarea for "Other" option */
.flag-modal .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
}

.flag-modal .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #dc3545;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.flag-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Warning notice box */
.flag-modal .text-warning {
  color: #ffc107 !important;
}

/* Footer */
.flag-modal .modal-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
}

/* Cancel button */
.flag-modal .modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.flag-modal .modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Report button (danger) */
.flag-modal .modal-footer .btn-danger {
  background: #dc3545;
  border-color: #dc3545;
}

.flag-modal .modal-footer .btn-danger:hover:not(:disabled) {
  background: #c82333;
  border-color: #bd2130;
}

.flag-modal .modal-footer .btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .flag-modal .modal-dialog {
    margin: 0.5rem;
  }

  .flag-modal .modal-content {
    border-radius: 12px;
  }

  .flag-modal .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .flag-modal .modal-footer .btn {
    width: 100%;
  }
}
