/*
Shared footer and feedback modal styling.
*/

.app-footer {
  margin-top: 10px;
  margin-left: 50px;
  font-size: 0.875rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 90%;
  font-family: 'Poppins', Arial, sans-serif;
}

.app-footer__credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-footer__link {
  color: inherit;
  text-decoration: underline dotted;
}

.app-footer__feedback-btn {
  border: 1px solid #e6eef6;
  background: #f8fafc;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-footer__feedback-btn svg {
  display: block;
}

.feedback-modal,
.feedback-confirm-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Poppins', Arial, sans-serif;
}

.feedback-confirm-modal {
  z-index: 10000;
  background: rgba(0, 0, 0, 0.35);
}

.feedback-modal.is-open,
.feedback-confirm-modal.is-open {
  display: flex !important;
}

.feedback-modal__panel,
.feedback-confirm-modal__panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.feedback-modal__panel {
  padding: 18px;
  min-width: 400px;
  max-width: 640px;
}

.feedback-confirm-modal__panel {
  padding: 16px;
  min-width: 260px;
  max-width: 520px;
}

.feedback-modal__title,
.feedback-confirm-modal__title {
  margin-top: 0;
}

.feedback-modal__form {
  display: grid;
  gap: 10px;
}

.feedback-modal__form label {
  display: block;
}

.feedback-modal__input,
.feedback-modal__textarea {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  display: block;
  font-family: inherit;
}

.feedback-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.feedback-modal__actions .small,
.feedback-confirm-modal__actions .small {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
  transition: background 0.18s ease-in-out, box-shadow 0.18s ease-in-out, transform 0.12s ease-in-out;
}

.feedback-modal__actions .small:hover,
.feedback-modal__actions .small:focus-visible,
.feedback-confirm-modal__actions .small:hover,
.feedback-confirm-modal__actions .small:focus-visible {
  background: #1d4ed8;
  box-shadow: 0 3px 6px rgba(29, 78, 216, 0.3);
  outline: none;
}

.feedback-modal__actions .small:active,
.feedback-confirm-modal__actions .small:active {
  transform: translateY(1px);
}

.feedback-modal__actions .secondary.small {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.feedback-modal__actions .secondary.small:hover,
.feedback-modal__actions .secondary.small:focus-visible {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.feedback-modal__close,
.feedback-confirm-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-confirm-modal__body {
  margin-top: 8px;
  font-size: 0.95rem;
}

.feedback-confirm-modal__actions {
  text-align: right;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .app-footer {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-modal__panel,
  .feedback-confirm-modal__panel {
    width: calc(100% - 32px);
    min-width: 0;
    max-width: none;
  }

  .feedback-modal__input,
  .feedback-modal__textarea {
    width: 100%;
  }
}
