/* -------------------------------------------------------------
 * Grade Calculator Tool - Modern UI Redesign
 * ------------------------------------------------------------- */
.leaf-grade-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.leaf-grade-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaf-grade-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.leaf-grade-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.leaf-grade-table tr:last-child td {
  border-bottom: none;
}

.leaf-grade-table tr:hover td {
  background-color: #fafbfc;
}

.leaf-grade-table input {
  padding: 9px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.leaf-grade-row-del {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leaf-grade-row-del:hover {
  color: #ef4444;
  background-color: #fee2e2;
  transform: scale(1.05);
}

.leaf-grade-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.leaf-grade-score-card {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 28px -6px rgba(5, 150, 105, 0.35);
  position: relative;
  overflow: hidden;
}

.leaf-grade-score-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.leaf-grade-score-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 8px;
  font-weight: 700;
}

.leaf-grade-score-val {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.leaf-grade-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.leaf-grade-sim-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}

.leaf-grade-sim-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaf-grade-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  align-items: flex-end;
}

.leaf-grade-sim-result {
  margin-top: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}
