/*
 * Modern styles for STRATEGIC.SM ImmoAnalyzer
 * These styles create a clean, centred form with rounded buttons and result boxes.
 */

.strategic-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 20px auto;
}

.strategic-label {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.strategic-btn {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.strategic-btn:hover {
  background: linear-gradient(135deg, #1e40af, #0369a1);
  transform: translateY(-2px);
}

.strategic-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0c4a6e;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.strategic-error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  margin: 15px auto;
}

/* Loading indicator container (hidden by default, shown on submit) */
.strategic-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-weight: 500;
  color: #0c4a6e;
  font-size: 1em;
}

/* Dots container for animated loading */
.loading-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.loading-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2563eb;
  animation: pulse 1s infinite ease-in-out;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Preview container for images */
.strategic-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.strategic-preview-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Copy button for diagnosis */
.strategic-copy-btn {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.strategic-copy-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Archive Styles */
.strategic-archive {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.strategic-archive h2 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #0c4a6e;
}
.strategic-archive-entry {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.strategic-archive-meta {
  font-size: 0.9em;
  color: #6b7280;
  margin-bottom: 10px;
}
.strategic-archive-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.strategic-archive-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.strategic-archive-content {
  font-size: 1em;
  line-height: 1.5;
  color: #1e293b;
  margin-bottom: 12px;
}
.strategic-archive-delete {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  text-decoration: none;
  transition: background 0.2s ease;
}
.strategic-archive-delete:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

/* Empty archive message */
.strategic-archive-empty {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  margin-top: 10px;
}

/* Dashboard wrapper */
.strategic-dashboard {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Tabs navigation */
.strategic-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.strategic-tab {
  flex: 1;
  padding: 12px 0;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: #1e293b;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 2px solid transparent;
}
.strategic-tab:hover {
  background: #e2e8f0;
}
.strategic-tab.active {
  background: #2563eb;
  color: #ffffff;
  border-bottom: 2px solid #2563eb;
}

/* Tab content */
.strategic-tab-content {
  display: none;
}
.strategic-tab-content.active {
  display: block;
}

/* Archive controls */
.strategic-archive-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

.strategic-archive-filter {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.9em;
}