/* LIC Jeevan Utsav Calculator v2.1 - Classic LIC Theme */

.lic-jeevan-utsav-plan-calculator {
  max-width: 850px;
  margin: 2rem auto;
  background: #fff;
  border: 3px solid #003399;
  border-radius: 10px;
  padding: 1.5rem;
  font-family: Arial, sans-serif;
}

.lic-jeevan-utsav-plan-calculator h1 {
  text-align: center;
  color: #003399;
  margin-bottom: 1.5rem;
}

.lic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.lic-form-group label {
  font-weight: bold;
  color: #003399;
}

.lic-input {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.lic-tooltip {
  cursor: help;
  color: #FFD700;
  margin-left: 5px;
  font-size: 0.9em;
  position: relative;
}

.lic-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 20px;
  left: 0;
  background: #003399;
  color: white;
  padding: 5px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}

.lic-riders legend {
  color: #003399;
  font-weight: bold;
}

.lic-rider-input {
  display: none;
  margin-top: 0.5rem;
}

.lic-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.lic-btn {
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.lic-btn-primary {
  background: #003399;
  color: white;
}

.lic-btn-secondary {
  background: #FFD700;
  color: #003399;
}

.lic-results {
  background: #f9f9f9;
  border-top: 3px solid #003399;
  margin-top: 2rem;
  padding: 1rem;
}

.lic-results h2 {
  color: #003399;
}

.lic-result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.lic-projection {
  margin-top: 1rem;
  overflow-x: auto;
}

.lic-projection h3 {
  color: #003399;
  margin-bottom: 0.5rem;
}

.lic-projection table {
  width: 100%;
  border-collapse: collapse;
}

.lic-projection th,
.lic-projection td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: right;
}

.lic-projection th:first-child,
.lic-projection td:first-child {
  text-align: left;
}

/* Share buttons */
.lic-share-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lic-share-actions .lic-btn {
  flex: 1 1 auto;
}

@media (max-width: 600px) {
  .lic-btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .lic-actions,
  .lic-projection-toggle,
  .lic-share-actions {
    display: none;
  }
  body {
    background: white;
  }
}
