/* Input groups with icons */
.input-group-text {
  background: #f1f5ff;
  border-right: none;
  color: #0d6efd;
}
.input-group .form-control {
  border-left: none;
}

/* Today button */
#todayBtn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 2px 12px;
  white-space: nowrap;
}
#todayBtn i {
  margin-right: 4px;
}

/* Reset button */
#resetDates {
  background: #ffc107;
  border: none;
  font-weight: 500;
  color: #212529;
  transition: 0.25s ease;
}
#resetDates:hover {
  background: #e0a800;
  color: #fff;
}
#resetDates i {
  margin-right: 4px;
}

/* Calculate button (bottom, bold) */
#calculateDiff {
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  border: none;
  color: #fff;
  padding: 10px;
  transition: all 0.25s ease;
}
#calculateDiff:hover {
  background: linear-gradient(90deg, #0b5ed7, #198754);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
#calculateDiff i {
  margin-right: 6px;
}

/* Gradient & bold title */
.section-title {
  background: linear-gradient(90deg, #0d6efd, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

/* ============================
   DATE DIFFERENCE CALCULATOR
============================ */
.date-card .input-group-text {
  background: #e9ecef;
  border: 1px solid #ced4da;
}

/* Results box */
#diffResult {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 8px;
  background: #f1f3f5;
  font-size: 0.95rem;
  font-weight: 500;
  color: #212529;
  min-height: 40px;
  line-height: 1.5;
}

/* ============================
   RESPONSIVE (Mobile tweaks)
============================ */
@media (max-width: 768px) {
  #resetDates,
  #todayBtn,
  #calculateDiff {
    width: 100%;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch !important;
  }

  .text-end {
    text-align: start !important;
  }
}

/* ============================
   Align To Date + Today Button
============================ */

/* Wrap input + today button in same height row */
.date-input-group {
  display: flex;
  align-items: stretch;
  gap: 6px; /* small spacing */
}

/* Force input & button same height */
.date-input-group .form-control,
.date-input-group #todayBtn {
  height: 38px; /* same as Bootstrap input height */
  line-height: 1.5;
}

/* Compact Today button style */
#todayBtn {
  border-radius: 6px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  transition: all 0.2s ease-in-out;
}
#todayBtn:hover {
  background: #bae6fd;
  color: #075985;
}

/* ============================
   Reset + Calculate Buttons
============================ */
#resetDates {
  border-radius: 8px;
  font-weight: 500;
  color: #495057;
  border: 1px solid #ced4da;
  background: #f8f9fa;
  transition: all 0.2s ease;
}
#resetDates:hover {
  background: #e9ecef;
  color: #212529;
}

#calculateDiff {
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  border: none;
  color: #fff;
  padding: 10px 18px;
  transition: all 0.25s ease;
}
#calculateDiff:hover {
  background: linear-gradient(90deg, #0b5ed7, #198754);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
