:root {
  --bg-light: #e0e5ec; /* Soft background */
  --card: #e0e5ec; /* Card surface */
  --text: #2e2e2e; /* Readable dark text */
  --accent: #00aaff; /* Accent Blue */
  --accent2: #ff4da6; /* Accent Pink */
  --radius: 16px;
  --shadow-dark: #b8bcc2;
  --shadow-light: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-light);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* Hero */
.hero {
  text-align: center;
  margin: 40px 0;
  animation: fadeIn 0.8s ease-out forwards;
}
.hero h1 {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.hero h1:hover {
  transform: scale(1.05);
  color: var(--accent2);
}
.hero p {
  margin-top: 8px;
  color: #555;
  font-size: 16px;
}

/* Tool Container */
.tool-container {
  align-self: center;
  max-width: 700px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  box-shadow: 9px 9px 16px var(--shadow-dark),
    -9px -9px 16px var(--shadow-light);
  animation: slideUp 1s ease-out forwards;
  transition: all 0.3s ease;
}
.tool-container:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 20px var(--shadow-dark),
    -12px -12px 20px var(--shadow-light);
}

/* Labels */
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Inputs */
input,
select {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  background: var(--card);
  color: var(--text);
  margin-bottom: 14px;
  font-size: 15px;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: box-shadow 0.2s ease;
}
input:focus,
select:focus {
  outline: none;
  box-shadow: inset 2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

/* Results */
.result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  animation: fadeIn 1.2s ease-out forwards;
}
.result-box h2 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 20px;
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cgpa-button {
  flex: 1;
  background: var(--card);
  color: var(--text);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}
.cgpa-button:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

/* Hide/Show Utility */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
