@import url('https://googleapis.com');

/* Main application chassis grouping box layout */
.app-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Base input controller layout styles */
.calculator-wrapper {
  font-family: 'Inter', sans-serif;
  color: #cbd5e1;
  width: 100%;
  max-width: 380px;
  padding: 2.25rem 2rem;
  background-color: #111827; 
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 4px solid #1f2937;
  box-sizing: border-box;
}

.calculator-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calculator-section {
  margin-bottom: 1.25rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.inline-checkbox label {
  margin-bottom: 0;
  cursor: pointer;
  color: #e2e8f0;
}

select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #f8fafc;
  background-color: #1f2937; 
  border: 1px solid #374151;
  border-radius: 8px;
  box-sizing: border-box;
}

input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.4rem;
  font-family: 'Share Tech Mono', monospace; 
  color: #2dd4bf; 
  background-color: #000000; 
  border: 2px solid #1f2937;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: right;
  transform: skewX(-10deg); 
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.65);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

input[type="number"]:focus {
  outline: none;
  border-color: #2dd4bf;
}

input[type="number"]::placeholder {
  color: rgba(45, 212, 191, 0.15);
  text-shadow: none;
}

button {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  background-color: #1f2937;
  color: #ffffff;
  border: 1px solid #374151;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1.5rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

button:hover {
  background-color: #374151;
  border-color: #2dd4bf;
}

.calculator-results {
  margin-top: 2rem;
  display: none; 
}

.lcd-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 3px solid #1f2937;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  height: 52px;
}

.lcd-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  color: #2dd4bf;
  text-transform: uppercase;
  transform: skewX(-10deg);
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.65);
}

.lcd-mode {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: #2dd4bf;
  position: absolute;
  left: 54%;
  top: 25%;
  transform: translateX(-50%) skewX(-10deg);
  text-shadow: 0 0 6px rgba(45, 212, 191, 0.5);
  opacity: 0.8;
}

.lcd-number-container {
  position: relative;
  text-align: right;
  min-width: 130px;
}

.lcd-bg-digits {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.1rem;
  color: rgba(45, 212, 191, 0.05); 
  transform: skewX(-10deg);
  display: inline-block;
  user-select: none;
}

.lcd-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.1rem;
  color: #2dd4bf;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) skewX(-10deg);
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.65);
}

/* --- NEW COMPONENT SUMMARY CARD DESIGN SECTION --- */
.report-wrapper {
  font-family: 'Inter', sans-serif;
  color: #cbd5e1;
  width: 100%;
  max-width: 380px;
  padding: 2.25rem 2rem;
  background-color: #111827; 
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 4px solid #1f2937;
  box-sizing: border-box;
  line-height: 1.5;
  display: none; /* Controlled hidden state window triggers */
}

.report-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #1f2937;
  padding-bottom: 0.75rem;
}

.report-greeting {
  font-weight: 700;
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.report-highlight {
  background-color: #030712;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #2dd4bf;
  margin: 1.25rem 0;
}

.glow-txt {
  color: #2dd4bf;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(45, 212, 191, 0.4);
}

.report-data-group {
  margin: 1.5rem 0;
  background: #1f2937;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.report-data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #374151;
}

.report-data-row:last-child {
  border-bottom: none;
}

.report-data-row strong {
  color: #2dd4bf;
}

.report-alert-section {
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px dashed #374151;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

.alert-header {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

/* --- DYNAMIC RESPONSIVE SCREEN ADJUSTMENT CODE --- */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .calculator-wrapper, .report-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .app-container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .calculator-wrapper,
  .report-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .calculator-title {
    font-size: 1.15rem;
  }

  input[type="number"] {
    font-size: 1.15rem;
  }

  .lcd-screen {
    padding: 0.5rem 0.85rem;
  }

  .lcd-text {
    font-size: 1.05rem;
  }

  .lcd-number-container {
    min-width: 100px;
  }

  .lcd-bg-digits,
  .lcd-value {
    font-size: 1.6rem;
  }

  .report-data-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}