:root {
  --primary-color: #FF9900;
  --secondary-color: #00A3E0;
  --bg-dark: #121212;
  --bg-card: rgba(30, 30, 30, 0.6);
  --text-light: #ffffff;
  --text-dim: #b0b0b0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-main: linear-gradient(135deg, #FF9900 0%, #FFC107 100%);
  --font-main: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 153, 0, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 163, 224, 0.1) 0%, transparent 20%);
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 350px;
  width: 100%;
  height: auto;
  margin-bottom: -1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.3));
}

h1 {
  font-size: 2rem;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.section-title {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.grid-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

input,
select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--text-light);
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

/* Fix for dropdown options visibility */
select option {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.btn-calculate {
  width: 100%;
  padding: 1rem;
  margin-top: 2rem;
  border: none;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.results-hidden {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.results-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 1;
  animation: fadeIn 0.5s forwards;
}

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.result-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.result-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.result-sub {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {

  .settings-grid,
  .results-visible {
    grid-template-columns: 1fr;
  }
}