/* === Globalne style modali === */

/*=== MODAL DODAWANIA PRZYKŁADU ===*/
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.25s ease;
}
.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #fffdf9;
  color: #222;
  width: 95%;
  max-width: 480px;
  padding: 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === HEADER globalny === */
.modal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.6rem;
}
.modal-logo {
  width: 50px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.modal-icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}
.modal-icon.accent {
  color: #333;
}

/* === POLA === */
.modal-label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
  color: #333;
}
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
textarea:focus {
  outline: none;
  border-color: #b8860b ;
  background: #fff3d4cb
}

/* === Pola formularza zgłoszenia === */
.reportForm select {
  width: 100%;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #fff;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='16' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M5 6l3 3 3-3z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 32px;
}

/* === STOPKA globalna === */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.char-counter {
  font-size: 0.85rem;
  color: #777;
}

/* === PRZYCISKI === */
.btn-primary {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: #555;
  transform: translateY(-1px);
}
.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* === CLOSE === */
.modal-close, .report-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
   background: #e74c3c;
  color: #fff;
 }
