/* =============================================
   report.css - Estilo actualizado 2026
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: #2d1e12;
  min-height: 100vh;
  overflow-x: hidden;
}

.header {
  background: #fff;
  padding: 1.2rem;
  text-align: center;
  border-bottom: 1px solid #ffe0b2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.logo-container h1 {
  font-size: 2.1rem;
  color: #e65100;
  margin-bottom: 0.3rem;
}

.logo-container p {
  color: #666;
  font-size: 1.05rem;
}

.top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
}

.chat-container {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  height: calc(90vh - 110px);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-top: 60px;
  padding-right: 16px;
  padding-bottom: 10px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.message {
  max-width: 82%;
  padding: 14px 20px;
  border-radius: 20px;
  line-height: 1.45;
  font-size: 1.1rem;
  position: relative;
}

.message.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #ffe0b2;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg,#3ba676,#2e8b57);
  color: white;
  border-bottom-right-radius: 4px;
}

.edit-btn {
  position: absolute;
  bottom: -22px;
  right: 12px;
  font-size: 0.9rem;
  color: #777;
  background: none;
  border: none;
  cursor: pointer;
}

.typing span {
  animation: dots 1.4s infinite;
}

@keyframes dots {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===================== BOTONES - Estilo unificado con poster.css ===================== */

.option-btn,
.btn,
.btn.primary,
input[type="button"] {
  background: linear-gradient(135deg, #66BB6A, #2e8b57);
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.option-btn:hover,
.btn:hover,
.btn.primary:hover,
input[type="button"]:hover {
  background: linear-gradient(135deg, #5cb85c, #27804d);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.45);
}

.option-btn:active,
.btn:active,
.btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.35);
}

.option-btn:disabled,
.btn:disabled {
  background: linear-gradient(135deg, #a5a5a5, #7f7f7f);
  color: #e0e0e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Estilo específico para los botones grandes de tipo de mascota */
.option-btn--tipo {
  flex: 1 1 170px;
  min-width: 250px;
  padding: 16px 20px;
  font-size: 1.55rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 16px;
}

/* Botón de ubicación (secundario) */
#useLocationBtn {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid #2e8b57;
  background: #FFFFFF;
  color: #2e8b57;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
  margin-bottom: 1.5rem;
}

#useLocationBtn:hover {
  background: #ff9800;
  border-color: #ff9800;
  color: white;
}

/* Botón saltar */
.skip-btn {
  background: linear-gradient(135deg, #66BB6A, #2e8b57);
  color: white;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.skip-btn:hover {
  background: linear-gradient(135deg, #5cb85c, #27804d);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.45);
}

/* ===================== OTRAS SECCIONES (sin cambios) ===================== */

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.options-container:has(.option-btn--tipo) {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px 20px;
  max-width: 620px;
  width: 100%;
  padding: 0 10px;
}

.options-container:has(.option-btn--cuando) {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
}

.option-btn--cuando {
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
}

/* Inputs y textarea */
.text-input,
textarea {
  width: 100%;
  padding: 20px 20px;
  border: 2px solid #2e8b57;
  border-radius: 16px;
  font-size: 1.1rem;
  margin-bottom: 12px;
  resize: vertical;
}

/* Vista previa de foto */
.preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* ── Media Queries ───────────────────────────────────────────── */
@media (max-width: 680px) {
  .chat-container {
    height: auto;
    min-height: calc(100vh - 100px);
  }
  .message {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .options-container:has(.option-btn--tipo) {
    flex-direction: column;
    gap: 12px;
  }
  
  .option-btn--tipo {
    flex: none;
    min-width: unset;
    width: 100%;
  }
}

/* ====================== REPORT SIDEBAR ====================== */
.report-wrapper {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
  padding: 20px 20px 40px;
  min-height: calc(100vh - 80px);
}

.chat-container {
  flex: 1;
  max-width: 680px;
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

.report-sidebar {
  width: 340px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffe0b2;
}

.sidebar-header h2 {
  color: #e65100;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.sidebar-subtitle {
  color: #666;
  font-size: 0.95rem;
}

.report-preview {
  min-height: 420px;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3.5rem;
  color: #ffe0b2;
  margin-bottom: 16px;
}

.empty-state p {
  line-height: 1.5;
}

.report-card {
  background: #fffaf0;
  border: 1px solid #ffe0b2;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.report-card h3 {
  color: #e65100;
  margin-bottom: 16px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #ffe0b2;
  font-size: 1.02rem;
}

.report-item:last-child {
  border-bottom: none;
}

.report-item-label {
  color: #555;
  font-weight: 500;
}

.report-item-value {
  color: #2d1e12;
  font-weight: 600;
  text-align: right;
  max-width: 180px;
  word-break: break-word;
}

.photo-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin: 12px 0 8px;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-photo {
  height: 180px;
  background: #f8f1e3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #c47c3d;
  font-size: 0.95rem;
  margin: 12px 0;
}

.sidebar-footer {
  margin-top: 30px;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .report-wrapper {
    flex-direction: column;
    gap: 20px;
  }
 
  .report-sidebar {
    width: 100%;
    position: static;
  }
 
  .chat-container {
    max-width: 100%;
    height: 65vh;
  }
}

@media (max-width: 680px) {
  .report-wrapper {
    padding: 15px 10px;
  }
}