/* ============================================
   INSULIN SENSITIVITY CALCULATOR STYLES
   ============================================ */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #FF6B6B;
  --dark-bg: rgba(0, 0, 0, 0.2);
  --light-bg: rgba(255, 255, 255, 0.1);
  --border-radius: 20px;
}
body{
    font-family: 'quick-gaseous', Arial, sans-serif;
}

/* Calculator Container */
.calculator-container {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #006240 0%, #003d28 50%, #260033 100%);
  padding-top: 80px;
  padding-bottom: 4rem;
}

/* Hero Section */
.calculator-hero {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInDown 1s ease-out;
}

.calculator-title {
  font-family: 'quick-gaseous', Arial, sans-serif;
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-weight: 100;
  text-decoration:underline 4px rgb(170, 0, 255) wavy ;
  text-underline-offset: 8px;
  background-color: #ffffff;
  margin-bottom: 1rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-subtitle {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}

.calculator-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.calculator-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Form Container */
.calculator-form-container {
  animation: fadeInUp 0.8s ease-out;
}

.form-title {
  font-family: 'quick-gaseous', Arial, sans-serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.insulin-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.label-icon {
  font-size: 1.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: 'quick-gaseous', Arial, sans-serif;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-field:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.input-unit {
  position: absolute;
  right: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  pointer-events: none;
  font-weight: 500;
}

.input-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* Calculate Button */
.calculate-button {
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  font-family: 'quick-gaseous', Arial, sans-serif;
}

.calculate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.calculate-button:active {
  transform: translateY(0);
}

.button-icon {
  font-size: 1.3rem;
}

/* Result Container */
.result-container {
  animation: fadeIn 0.5s ease-out;
}

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

.result-header h2 {
  font-family: 'quick-gaseous', Arial, sans-serif;
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
}

.reset-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(180deg);
}

/* QUICKI Score Card */
.quicki-score-card {
  background: rgba(102, 126, 234, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.4);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: scaleIn 0.6s ease-out;
}

.score-value {
  font-family: 'monospace', Arial, sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  background: linear-gradient(45deg, #ff00fb, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  background-clip: text;
  margin-bottom: 0.5rem;
}

.score-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Sensitivity Indicator */
.sensitivity-indicator {
  margin-bottom: 2rem;
}

.indicator-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.indicator-fill {
  height: 100%;
  width: 0%;
  background: var(--success-color);
  transition: all 1s ease-out;
  border-radius: 10px;
}

.indicator-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.indicator-labels .label {
  color: rgba(255, 255, 255, 0.7);
}

/* Interpretation Card */
.interpretation-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.interpretation-title {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  margin-top: 0;
}

.interpretation-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.recommendation-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(102, 126, 234, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
}

.recommendation-box h5 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.recommendation-box ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-position: inside;
}

.recommendation-box li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Input Values Display */
.input-values-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.value-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.value-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.value-result {
  color: rgba(102, 126, 234, 0.9);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Formula Reference */
.formula-reference {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.formula-reference h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.formula {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: rgba(102, 126, 234, 0.9);
  margin: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.formula-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Info Section */
.info-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-family: 'quick-gaseous', Arial, sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem 0;
}

.info-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* Back Link */
.back-link {
  display: inline-block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(-5px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .calculator-container {
    padding-top: 70px;
    padding-bottom: 3rem;
  }

  .calculator-hero {
    padding: 2.5rem 1.5rem;
  }

  .calculator-title {
    font-size: 2rem;
  }

  .calculator-subtitle {
    font-size: 1.1rem;
  }

  .calculator-section {
    padding: 0 1rem;
  }

  .calculator-wrapper {
    padding: 2rem 1.5rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .quicki-score-card {
    padding: 2rem 1.5rem;
  }

  .score-value {
    font-size: 2.5rem;
  }

  .input-values-display {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .interpretation-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .calculator-container {
    padding-top: 60px;
    padding-bottom: 2rem;
  }

  .calculator-hero {
    padding: 2rem 1rem;
  }

  .calculator-title {
    font-size: 1.6rem;
    text-decoration: underline 2px rgb(170, 0, 255) wavy;
    text-underline-offset: 4px black wavy;
  }

  .calculator-subtitle {
    font-size: 1rem;
  }

  .calculator-description {
    font-size: 0.9rem;
  }

  .calculator-section {
    padding: 0 0.75rem;
  }

  .calculator-wrapper {
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .insulin-form {
    gap: 1.5rem;
  }

  .input-label {
    font-size: 1rem;
  }

  .input-field {
    padding: 0.85rem 3rem 0.85rem 0.75rem;
    font-size: 1rem;
  }

  .calculate-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .quicki-score-card {
    padding: 1.5rem 1rem;
  }

  .score-value {
    font-size: 2rem;
  }

  .result-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .result-header h2 {
    font-size: 1.3rem;
  }

  .interpretation-card {
    padding: 1rem;
  }

  .interpretation-title {
    font-size: 1.1rem;
  }

  .formula-reference {
    padding: 1rem;
  }

  .formula {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0;
    gap: 1rem;
  }

  .info-card {
    padding: 1.5rem 1rem;
  }

  .info-icon {
    font-size: 2rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.85rem;
  }
}
