/* Kundli Matching Generator Styles */

/* Ensure proper touch targets for matching components */
.jyotisham-generate-btn,
.jyotisham-tab-btn {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.jyotisham-generate-btn:active,
.jyotisham-tab-btn:active {
  transform: scale(0.98);
}

/* Form Styles - Consistent with main style.css */
.jyotisham-form-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.jyotisham-form-group {
  margin-bottom: 24px;
}

.jyotisham-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jyotisham-form-group input,
.jyotisham-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
  box-sizing: border-box;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.jyotisham-form-group input:focus,
.jyotisham-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.jyotisham-form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  height: auto !important; 
}

.jyotisham-generate-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jyotisham-generate-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jyotisham-person-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Score Cards with Enhanced Design */
.jyotisham-score-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.jyotisham-section-title{
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a202c;
}

.jyotisham-score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.jyotisham-score-card.excellent {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.jyotisham-score-card.good {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.jyotisham-score-card.fair {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.jyotisham-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.jyotisham-score-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jyotisham-compatibility-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.jyotisham-score-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 16px 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.jyotisham-score-description {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Enhanced Matching Grid */
.jyotisham-matching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.jyotisham-matching-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jyotisham-matching-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.jyotisham-matching-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.jyotisham-matching-header h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jyotisham-score-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 60px;
  text-align: center;
}

.jyotisham-matching-content {
  margin-top: 12px;
}

.jyotisham-matching-content .description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.jyotisham-person-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.jyotisham-person-details .boy-detail,
.jyotisham-person-details .girl-detail {
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
}

.jyotisham-person-details .girl-detail {
  border-left-color: #ec4899;
}

/* Dosha Analysis Grid */
.jyotisham-dosha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.jyotisham-dosha-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jyotisham-dosha-card.positive {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.jyotisham-dosha-card.negative {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.jyotisham-dosha-card.neutral {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.dosha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dosha-header h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dosha-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dosha-status.present {
  background: #fef2f2;
  color: #dc2626;
}

.dosha-status.absent {
  background: #f0fdf4;
  color: #16a34a;
}

.dosha-details {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.dosha-details .boy-detail,
.dosha-details .girl-detail {
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.dosha-warning {
  background: #fef2f2;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 8px;
  border: 1px solid #fecaca;
}

.dosha-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 8px;
  border: 1px solid #bbf7d0;
}

.dosha-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
}

/* Summary and Recommendations */
.jyotisham-summary-content,
.jyotisham-recommendations {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  margin-top: 16px;
}

.jyotisham-summary-content p,
.jyotisham-recommendations p {
  margin: 0;
  line-height: 1.6;
  color: #374151;
}

/* Enhanced Cards */
.jyotisham-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.jyotisham-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jyotisham-card h3 {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Person Details Table */
.jyotisham-table-container {
  overflow-x: auto;
  margin-top: 16px;
}

.jyotisham-data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jyotisham-data-table tr {
  border-bottom: 1px solid #f3f4f6;
}

.jyotisham-data-table tr:last-child {
  border-bottom: none;
}

.jyotisham-data-table td {
  padding: 12px 16px;
  vertical-align: top;
}

.jyotisham-data-table td:first-child {
  font-weight: 600;
  color: #374151;
  background: #f8fafc;
  width: 40%;
}

.jyotisham-data-table td:last-child {
  color: #6b7280;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
  .jyotisham-form-container {
    max-width: 95%;
    padding: 28px;
  }

  .jyotisham-matching-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .jyotisham-dosha-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  .jyotisham-form-container {
    padding: 20px;
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .jyotisham-form-group {
    margin-bottom: 18px;
  }

  .jyotisham-form-group input,
  .jyotisham-form-group select {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
  }

  .jyotisham-generate-btn {
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
  }

  .jyotisham-person-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .jyotisham-section-title {
    font-size: 1.125rem;
    margin-bottom: 16px;
  }

  .jyotisham-matching-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .jyotisham-dosha-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .jyotisham-score-card {
    padding: 24px;
    margin-bottom: 20px;
  }

  .jyotisham-score-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .jyotisham-score-header h3 {
    font-size: 1.125rem;
  }

  .jyotisham-score-number {
    font-size: 2rem;
  }

  .jyotisham-score-description {
    font-size: 0.9rem;
  }
  
  .jyotisham-matching-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .jyotisham-matching-header h4 {
    font-size: 0.9rem;
  }
  
  .dosha-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .dosha-header h4 {
    font-size: 0.9rem;
  }
  
  .jyotisham-person-details {
    flex-direction: column;
  }
  
  .dosha-details {
    flex-direction: column;
  }

  .jyotisham-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .jyotisham-card h3 {
    font-size: 1rem;
  }

  .jyotisham-matching-item {
    padding: 16px;
  }

  .jyotisham-dosha-card {
    padding: 16px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .jyotisham-form-container {
    padding: 16px;
    margin: 0 0 16px 0;
    max-width: 100%;
    border-radius: 12px;
  }

  .jyotisham-form-group {
    margin-bottom: 16px;
  }

  .jyotisham-form-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .jyotisham-form-group input,
  .jyotisham-form-group select {
    padding: 14px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 6px;
  }

  .jyotisham-generate-btn {
    padding: 16px 20px;
    font-size: 14px;
    border-radius: 8px;
  }

  .jyotisham-person-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .jyotisham-section-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .jyotisham-matching-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .jyotisham-dosha-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jyotisham-score-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .jyotisham-score-header h3 {
    font-size: 1rem;
  }

  .jyotisham-score-number {
    font-size: 1.75rem;
  }

  .jyotisham-score-description {
    font-size: 0.85rem;
  }

  .jyotisham-matching-header h4 {
    font-size: 0.85rem;
  }
  
  .dosha-header h4 {
    font-size: 0.85rem;
  }

  .jyotisham-card {
    padding: 12px;
    margin-bottom: 12px;
  }

  .jyotisham-card h3 {
    font-size: 0.9rem;
  }

  .jyotisham-matching-item {
    padding: 12px;
  }

  .jyotisham-dosha-card {
    padding: 12px;
  }

  .jyotisham-data-table {
    font-size: 0.75rem;
  }

  .jyotisham-data-table td {
    padding: 8px 10px;
  }
}

/* Very Small Mobile Phones */
@media (max-width: 360px) {
  .jyotisham-form-container {
    padding: 12px;
  }

  .jyotisham-person-section {
    padding: 12px;
  }

  .jyotisham-section-title {
    font-size: 0.9rem;
  }

  .jyotisham-score-card {
    padding: 16px;
  }

  .jyotisham-score-header h3 {
    font-size: 0.9rem;
  }

  .jyotisham-score-number {
    font-size: 1.5rem;
  }

  .jyotisham-card {
    padding: 10px;
  }

  .jyotisham-matching-item {
    padding: 10px;
  }

  .jyotisham-dosha-card {
    padding: 10px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .jyotisham-form-container {
    padding: 16px;
  }

  .jyotisham-person-section {
    padding: 16px;
  }

  .jyotisham-score-card {
    padding: 20px;
  }
}

/* Loading States */
.jyotisham-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Error States */
.jyotisham-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.jyotisham-error-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jyotisham-error-icon {
  font-size: 2rem;
}

.jyotisham-error-message h3 {
  margin: 0 0 8px 0;
  color: #dc2626;
}

.jyotisham-retry-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.2s ease;
}

.jyotisham-retry-btn:hover {
  background: #b91c1c;
}

/* Utility Classes */
.jyotisham-hidden {
  display: none !important;
}

.jyotisham-text-center {
  text-align: center;
}

.jyotisham-mb-4 {
  margin-bottom: 1rem;
}

.jyotisham-mt-4 {
  margin-top: 1rem;
}


