/* ===================== */
/* THEME: BABY SPA REKA */
/* ===================== */
:root {
  --primary: #89CFF0;       /* Biru bayi */
  --secondary: #FFB6C1;    /* Merah muda pastel */
  --accent: #98FB98;       /* Hijau mint */
  --text: #2c3e50;         /* Warna teks */
  --background: #f8f9fa;    /* Warna latar */
  --danger: #ff2c5b; /*red*/
  --warning: #ffdb43; /*Yellow*/
  --white: #ffffff;
  --radius: 15px;          /* Sudut melengkung */
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== */
/* BASE STYLES */
/* ===================== */
body {
  background: var(--background);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 2rem;
}

/* ===================== */
/* CARD & HEADER STYLES */
/* ===================== */
.baby-container {
  max-width: 1000px;
  margin: 0 auto;
}

.baby-cards {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--primary);
  margin-bottom: 2rem;
  overflow: hidden;
}

.baby-headers {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1rem!important;
  text-align: center;
  position: relative;
}

.baby-headers::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--primary);
}

.baby-titles {
  color: var(--white);
  font-size: 2.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.baby-titles i {
  font-size: 1.8em;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* ===================== */
/* FORM ELEMENTS */
/* ===================== */
.baby-forms {
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
}

.baby-input-groups {
  margin-bottom: 2rem;
  width:100%;
}

.baby-labels {
  display: block;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  width: 100%;
}

.baby-labels.required::after {
  content: "*";
  color: var(--secondary);
  margin-left: 0.3rem;
}

/* Input Base Style */
.baby-inputs,
.baby-selects {
  width: 100%;
  height: 72px;
  padding: 1rem 2rem;
  border: 2.5px solid var(--primary)!important;
  border-radius: 50px!important;
  font-size: 1.1rem;
  font-family: 'Nunito', sans-serif!important;
  background-color: var(--white)!important;
  transition: var(--transition)!important;
  -webkit-appearance: none!important;
  -moz-appearance: none!important;
  appearance: none!important;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.05)!important;
  outline: none!important;
}

/* Custom Select Dropdown */
.baby-selects {
  background: 
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3e%3cpath fill='%23FFB6C1' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") 
    no-repeat right 1.8rem center/1.6rem,
    linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.95))!important;
  padding-right: 4.5rem!important;
}


/* Number Input */
.baby-inputs[type="number"] {
  background-image: none!important;
  padding-right: 2rem!important;
}

/* Focus States */
.baby-inputs:focus,
.baby-selects:focus {
  border-color: var(--secondary)!important;
  box-shadow: 
    0 0 0 4px rgba(255,182,193,0.25),
    inset 0 3px 6px rgba(0,0,0,0.05)!important;
}

/* Date Picker Customization */
.baby-inputs[type="date"]::-webkit-calendar-picker-indicator {
 color:  #FFB6C1 !important;
}

.baby-inputs[type="date"]::-webkit-datetime-edit {
  color: var(--primary)!important;
  background: rgba(137,207,240,0.1)!important;
  border-radius: 8px!important;
}

.baby-inputs[type="date"]::-webkit-datetime-edit-fields-wrapper {
}

/* Placeholder Styling */
.baby-inputs::placeholder {
  color: #94a3b8!important;
  font-style: italic!important;
  opacity: 0.8!important;
  font-weight: 500;
}

/* Remove Number Input Spinners */
.baby-inputs[type="number"]::-webkit-outer-spin-button,
.baby-inputs[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.baby-inputs[type="number"] {
  -moz-appearance: textfield;
}

/* ===================== */
/* DROPDOWN OPTIONS */
/* ===================== */
.baby-selects option {
  background: var(--white)!important;
  color: var(--text)!important;
  padding: 1rem 1.5rem!important;
  margin: 0.5rem!important;
  border-radius: 15px!important;
  transition: all 0.2s ease!important;
}

.baby-selects option:hover {
  background: var(--secondary)!important;
  color: var(--white)!important;
  transform: translateX(10px)!important;
}

.baby-selects option:checked {
  background: var(--primary)!important;
  color: var(--white)!important;
}

/* ===================== */
/* BUTTON STYLES */
/* ===================== */
.btn-babys {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 3rem;
  border: none!important;
  border-radius: 50px!important;
  font-weight: 800!important;
  cursor: pointer!important;
  transition: var(--transition)!important;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary))!important;
  color: var(--white)!important;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-babys:hover {
  transform: translateY(-2px)!important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15)!important;
  opacity: 0.95!important;
}

/* ===================== */
/* RESULTS & CHARTS */
/* ===================== */
.gc-results {
  padding: 1rem;
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.gc-status-group {
  display: grid;
  gap: 1.8rem;
  margin: 2.5rem 0;
}

.gc-status {
  padding: 1.8rem;
  border-radius: var(--radius);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}

.gc-status i {
  font-size: 1.8rem;
  min-width: 40px;
}

.gc-status.danger { background: var(--danger); }
.gc-status.warning { background: var(--warning); }
.gc-status.info { background: var(--accent); }
.gc-status.success { background: var(--accent); color: var(--text); }

.gc-chart-container {
  height: 600px;
  margin: 2.5rem 2.5rem 2.5rem 2.5rem;
  padding: 4rem 2rem 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2.5px solid var(--primary);
  display:grid;
  align-content: center;
  justify-items: center;
}

.gc-chart-title {
  color: var(--text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ===================== */
/* LEGEND & DETAILS */
/* ===================== */
.gc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2.5rem;
}

.gc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  background: rgba(137,207,240,0.1);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.gc-legend-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#gcResults{
  padding:2.5rem;
}

/* ===================== */
/* RESPONSIVE DESIGN */
/* ===================== */
@media (max-width: 768px) {
.baby-inputs,
.baby-selects {
    height:64px;
   align-content: center
    
}
 .gc-chart-container {
        padding: 3rem 1rem 3rem 1rem !important;
        margin: 1rem !important;
        display: grid !important;
        align-content: center !important;
        height: 400px;
    }
    .gc-results {
        padding: 1rem !important;
    }
  body {
    padding: 1.5rem;
  }
  
  .baby-titles {
    font-size: 1.8rem!important;
  }
  
  .baby-forms {
    padding: 1.5rem;
  }
  
  .btn-babys {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }
  
  .baby-selects {
    background-size: 1.4rem!important;
    background-position: right 1.2rem center!important;
  }
  
  .baby-inputs[type="date"] {
    background-size: 1.4rem!important;
    background-position: right 1.2rem center!important;
  }
}

/* ===================== */
/* FIXES FOR INPUT STYLES */
/* ===================== */
.baby-inputs[type="date"]::-webkit-datetime-edit {
  color: var(--text)!important;
  padding: 0.3rem 0.5rem!important;
  background: rgba(137,207,240,0.1)!important;
  border-radius: 8px!important;
}

.baby-inputs[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0.2rem;
}
/* ===================== */
/* CHART LEGEND ENHANCEMENT */
/* ===================== */
.gc-legend {
  margin:1rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--primary);
}

.gc-legend-title {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gc-legend-title i {
  color: var(--primary);
  font-size: 1.5em;
}

.gc-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(137,207,240,0.08);
  transition: var(--transition);
}

.gc-legend-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gc-legend-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.gc-legend-label {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.gc-legend-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .gc-legend {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .gc-legend-item {
    padding: 1rem;
  }
  
  .gc-legend-desc {
    font-size: 0.85rem;
  }
}
/* ===================== */
/* END OF CSS */
/* ===================== */