/* Global & Layout */
body {
  font-family: "Noto Sans SC", sans-serif;
  color: #333;
  margin: 0;
  min-height: 100vh;
  background-color: #f5f7fa;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.bg-orb-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: #a8edea;
}

.bg-orb-2 {
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: #fed6e3;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Nav */
.top-nav {
  padding: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #333;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #34495e;
}

.toggle-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  color: #666;
  font-size: 0.8rem;
}

.toggle-btn:hover {
  background: #f0f0f0;
}

/* Inputs */
.input-group-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.input-group-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.input-wrapper {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
  font-size: 0.9rem;
}

input[type="number"],
input[type="text"] {
  padding: 10px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

input:focus {
  border-color: #3498db;
}

.hint {
  font-size: 0.8rem;
  color: #95a5a6;
  margin-top: 4px;
}

/* Actions */
.action-bar {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn {
  background-color: #3498db;
  color: white;
}

.primary-btn:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.secondary-btn {
  background-color: #ecf0f1;
  color: #7f8c8d;
}

.secondary-btn:hover {
  background-color: #bdc3c7;
  color: #2c3e50;
}

/* Results */
.result-area {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #eee;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-area h3 {
  margin-top: 0;
  color: #2c3e50;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.result-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #ddd;
}

.result-item.good {
  border-left-color: #2ecc71;
}
.result-item.bad {
  border-left-color: #e74c3c;
}
.result-item.warn {
  border-left-color: #f39c12;
}

.result-item .label {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.result-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.result-item .desc {
  font-size: 0.8rem;
  color: #95a5a6;
  margin-top: 5px;
}

/* Table */
.result-table-wrapper {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.result-table th,
.result-table td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: left;
}

.result-table th {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
}

/* Selection & Contract */
.info-box {
  background-color: #e8f6f3;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #16a085;
  font-size: 0.9rem;
}

.info-box ul {
  margin: 5px 0 0 20px;
  padding: 0;
}

.result-block {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.warning-text {
  color: #e67e22;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
  .input-group-row {
    flex-direction: column;
    gap: 15px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}


