* {
  margin: 0;
  padding: 0;
  font-family: "Rubik";
  box-sizing: border-box;
}

body {
  font-family: "Rubik";
  line-height: 1.6;
  color: #333;
  background: linear-gradient(145deg, #1f5059 25%, #234982 50%, #76387a 100%, #4e6233 75%);
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
  font-size: 1.2rem;
  opacity: 0.9;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.card h2 {
  color: #4a5568;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select:hover {
  border-color: #cbd5e0;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result {
  margin-top: 30px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.5s ease;
}

.result.hidden {
  display: none;
}

.result h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

.result-content p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.highlight {
  color: #667eea;
  font-weight: bold;
  font-size: 1.3rem;
}

.info-section {
  display: grid;
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  margin-bottom: 10px;
  padding: 10px;
  background: #f7fafc;
  border-radius: 5px;
  border-left: 4px solid #667eea;
}

.info-card p {
  line-height: 1.6;
  color: #4a5568;
}

footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  main {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }

  header h1 {
    font-size: 3rem;
  }

  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .form-group {
    display: inline-block;
    width: 48%;
    margin-right: 4%;
  }

  .form-group:nth-child(3n) {
    margin-right: 0;
  }

  .form-group:first-child {
    width: 100%;
    margin-right: 0;
  }
}

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

.card,
.info-card {
  animation: fadeIn 0.6s ease-out;
  transition: all 0.3s ease;
}

.info-card:nth-child(2) {
  animation-delay: 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
    background: linear-gradient(145deg, #1a3c44 25%, #1c3a6a 50%, #5e2c61 100%, #3e4c28 75%);
  }

  .card {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .card h2,
  .form-group label,
  .info-card h3,
  .info-card p {
    color: #e2e8f0;
  }

  select {
    background: #4a5568;
    color: #e2e8f0;
    border: 2px solid #718096;
  }

  select:focus {
    border-color: #7f9cf5;
    box-shadow: 0 0 0 3px rgba(127, 156, 245, 0.2);
  }

  select:hover {
    border-color: #a0aec0;
  }

  button {
    background: linear-gradient(135deg, #7f9cf5 0%, #9f7aea 100%);
  }

  button:hover {
    box-shadow: 0 5px 15px rgba(127, 156, 245, 0.5);
  }

  button:disabled {
    background: #718096;
  }

  .result {
    background: #4a5568;
    border: 2px solid #718096;
  }

  .result h3 {
    color: #e2e8f0;
  }

  .highlight {
    color: #7f9cf5;
  }

  .info-card {
    background: rgba(45, 55, 72, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .info-card li {
    background: #4a5568;
    border-left: 4px solid #7f9cf5;
  }

  footer {
    color: rgba(255, 255, 255, 0.9);
  }

  .card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  }

  .info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
}