/* General Page Setup */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* Main Container Card */
.calculator-container {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #1a202c;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
}

p {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 24px 0;
}

/* Layout for Inputs */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Checkbox Alignment Styles */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: #ff6b00;
  cursor: pointer;
}

label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
}

input[type="number"], select {
  padding: 12px;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.2s;
}

input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #ff6b00;
}

/* Action Button */
button {
  background-color: #ff6b00;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 8px;
}

button:hover {
  background-color: #e05e00;
}

button:active {
  transform: scale(0.98);
}

/* Blueprint Section Styles */
.blueprint-section {
  margin-top: 28px;
}

.blueprint-section h3 {
  color: #2d3748;
  font-size: 18px;
  margin-bottom: 12px;
}

.blueprint-canvas {
  background-color: #1e293b;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  height: 220px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

#deck-visual {
  background: rgba(245, 158, 11, 0.2);
  border: 2px dashed #f59e0b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, height 0.3s ease;
  min-width: 40px;
  min-height: 40px;
  width: 120px;
  height: 160px;
}

#visual-dimensions {
  color: #fbbf24;
  font-weight: 700;
  font-size: 14px;
  background: #1e293b;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Results Display Cards */
.results-section {
  margin-top: 28px;
}

.results-section h3 {
  color: #2d3748;
  font-size: 18px;
  margin-bottom: 16px;
}

.material-card, .cost-card {
  background: #f8fafc;
  border-left: 4px solid #ff6b00;
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

.cost-card {
  border-left-color: #2b6cb0;
  background: #f0f7ff;
}

.material-card p, .cost-card p {
  margin: 8px 0;
  color: #2d3748;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-card p span, .cost-card p span {
  font-weight: 700;
  color: #1a202c;
}

.material-card p > span:last-child, .cost-card p > span:last-child {
  text-align: right;
  display: inline-block;
  width: 80px; 
}

.cost-card h4 {
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px dashed #bee3f8;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #2b6cb0;
}