/* =====body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  min-height: 100vh;
  padding: 20px 0;
}========= MAIN STYLES ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px 0;
}

/* ==================== CALCULATOR WRAPPER ==================== */

.calculator-wrapper {
  background: #fff;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.title {
  color: #000;
  font-weight: 400;
  margin-bottom: 20px !important;
  padding-bottom: 0;
  font-size: 1.5rem;
}

/* ==================== FORM SECTIONS ==================== */

.form-section {
  margin-bottom: 20px;
  padding: 15px 0;
}

.form-section h3 {
  color: #000;
  font-weight: 400;
  margin-bottom: 10px;
  font-size: 1rem;
}

.form-section h3.text-danger {
  color: #e74c3c !important;
}

/* ==================== FORM CONTROLS ==================== */

.form-label {
  color: #000;
  font-weight: 400;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #999;
  box-shadow: none;
}

.form-select-lg,
.form-control-lg {
  padding: 8px 10px;
  font-size: 0.95rem;
}

.form-control::placeholder {
  color: #999;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
  background: #000;
  border: 1px solid #000;
  color: white;
  font-weight: 400;
  border-radius: 0;
  padding: 8px 20px;
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-primary:active {
  background: #000;
}

.btn-danger {
  background: #000;
  border: 1px solid #000;
  color: white;
  font-weight: 400;
  border-radius: 0;
  padding: 8px 20px;
}

.btn-danger:hover {
  background: #333;
  border-color: #333;
}

.btn-danger:active {
  background: #000;
}

.btn-lg {
  font-size: 0.95rem;
  padding: 8px 20px !important;
}

/* ==================== RESULTS SECTION ==================== */

.results-section {
  background: #fff;
  border-left: none;
  margin-top: 20px;
  padding: 15px 0;
}

.results-section h3 {
  color: #000;
  font-weight: 400;
  font-size: 1rem;
}

.result-box {
  background: #fff;
  padding: 15px;
  border-radius: 0;
  text-align: left;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.result-box:hover {
  transform: none;
  box-shadow: none;
}

.result-label {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.result-value {
  display: block;
  color: #000;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 3px;
}

.result-currency {
  display: block;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
}

#calculationDetails {
  line-height: 1.6;
  color: #333;
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .calculator-wrapper {
    padding: 25px;
  }

  .title {
    font-size: 1.5rem !important;
  }

  .form-section {
    padding: 15px;
  }

  .form-section h3 {
    font-size: 1.1rem;
  }

  .d-grid.gap-2.d-md-flex {
    flex-direction: column !important;
  }

  .btn-lg {
    min-width: 100% !important;
  }

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

@media (max-width: 576px) {
  .calculator-wrapper {
    padding: 15px;
    border-radius: 8px;
  }

  .title {
    font-size: 1.25rem !important;
    padding-bottom: 10px;
  }

  .form-section {
    padding: 12px;
    border-left-width: 3px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .result-value {
    font-size: 1.8rem;
  }

  .row {
    flex-direction: column;
  }
}

/* ==================== ANIMATIONS ==================== */

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

.results-section {
  animation: slideInUp 0.4s ease;
}

/* ==================== UTILITY CLASSES ==================== */

.text-danger {
  color: #e74c3c !important;
}

.bg-light {
  background-color: #ecf0f1 !important;
}

hr {
  border: none;
  border-top: 2px solid #bdc3c7;
  margin: 25px 0;
}

small.form-text {
  font-size: 0.85rem !important;
}

/* Color Toggle Button */
#colorToggleBtn {
  display: none;
}

/* Smooth transitions for theme changes */
body,
.calculator-wrapper,
.form-section,
.form-control,
.form-select,
.btn,
.title {
  transition: none;
}
