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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styles */
.site-header {
  background: linear-gradient(135deg, #14213d 0%, #1a2b4d 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #fca311;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive header */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #14213d;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .main-nav.mobile-menu-active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .header-container {
    position: relative;
  }
}

/* Utility classes */
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.flex-grow { flex-grow: 1; }
.bg-white { background-color: white; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.border { border-width: 1px; }
.border-t-0 { border-top-width: 0; }
.border-b { border-bottom-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-white { color: white; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-\[#fca311\] { --tw-gradient-from: #fca311; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(252, 163, 17, 0)); }
.to-\[#e69100\] { --tw-gradient-to: #e69100; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.duration-200 { transition-duration: 200ms; }
.transition-all { transition-property: all; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hidden { display: none; }
.animate-spin { animation: spin 1s linear infinite; }
.rounded-full { border-radius: 9999px; }
.border-b-2 { border-bottom-width: 2px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.opacity-90 { opacity: 0.9; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.max-w-6xl { max-width: 72rem; }
.min-h-\[60px\] { min-height: 60px; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Custom color classes */
.bg-\[#FEF9E7\] { background-color: #FEF9E7; }
.text-\[#14213d\] { color: #14213d; }
.text-\[#8a4500\] { color: #8a4500; }
.text-\[#fca311\] { color: #fca311; }
.border-\[#f1e6c0\] { border-color: #f1e6c0; }
.bg-\[#fca311\] { background-color: #fca311; }
.hover\:bg-\[#e69100\]:hover { background-color: #e69100; }
.hover\:text-\[#e69100\]:hover { color: #e69100; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.5); }
.focus\:ring-\[#fca311\]:focus { --tw-ring-color: #fca311; }
.focus\:border-transparent:focus { border-color: transparent; }
.border-\[#fca311\] { border-color: #fca311; }

/* Form styles */
.form-input, .form-select {
  appearance: none;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-input:focus, .form-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.5);
  border-color: transparent;
}

/* Tool Selection Cards */
.tool-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tool-card:hover {
  border-color: #fca311;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(252, 163, 17, 0.1);
}

.tool-card.selected {
  border-color: #fca311;
  background: linear-gradient(135deg, #fef9e7 0%, #fff 100%);
  box-shadow: 0 4px 15px rgba(252, 163, 17, 0.2);
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tool-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(45deg, #fca311, #e69100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.tool-price {
  color: #059669;
  font-weight: 600;
  font-size: 0.875rem;
}

.tool-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.feature-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Checkbox for tool selection */
.tool-checkbox {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tool-card.selected .tool-checkbox {
  background: #fca311;
  border-color: #fca311;
}

.tool-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card.selected .tool-checkbox::after {
  opacity: 1;
}

/* Individual Tool Analysis Cards */
.analysis-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.analysis-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.roi-indicator {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.roi-positive {
  background: #dcfce7;
  color: #166534;
}

.roi-negative {
  background: #fee2e2;
  color: #991b1b;
}

.roi-neutral {
  background: #fef3c7;
  color: #92400e;
}

.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
}

.metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-details {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Recommendation Cards */
.recommendation {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border-left: 4px solid #fca311;
}

.recommendation-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.recommendation-content {
  flex: 1;
}

.recommendation-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.recommendation-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Comparison Table */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #fef9e7;
  font-weight: 600;
  color: #374151;
}

td {
  color: #6b7280;
}

.tool-name-cell {
  font-weight: 600;
  color: #374151;
}

.price-cell {
  color: #059669;
  font-weight: 600;
}

/* Button styles */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .py-12 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .p-8 {
    padding: 1.5rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  
  .analysis-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .tool-card {
    padding: 1rem;
  }
  
  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .tool-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
}

/* Animation keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Success/Warning indicators */
.success-text { color: #059669; }
.warning-text { color: #d97706; }
.danger-text { color: #dc2626; }