/* ========================================================================== */
/* SYSTEEMPLAFOND REKENMACHINE - MINIMAL APPLE DESIGN */
/* ========================================================================== */

* {
  box-sizing: border-box;
}

/* ========================================================================== */
/* GLOBAL */
/* ========================================================================== */

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #F4F8F9;
  color: #2D3E50;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================================== */
/* CONTAINER */
/* ========================================================================== */

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* ========================================================================== */
/* HEADER */
/* ========================================================================== */

.header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: #2D3E50;
  letter-spacing: -0.5px;
}

.header p {
  font-size: 14px;
  color: #7A8A99;
  margin: 8px 0 0 0;
  font-weight: 400;
}

/* ========================================================================== */
/* MAIN */
/* ========================================================================== */

.main {
  width: 100%;
}

/* ========================================================================== */
/* SECTION */
/* ========================================================================== */

.section {
  margin-bottom: 32px;
  width: 100%;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #2D3E50;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* ========================================================================== */
/* BUTTONS - SYSTEM SELECTION */
/* ========================================================================== */

.button-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn {
  flex: 1;
  padding: 14px 16px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #D0D6DB;
  background: white;
  color: #2D3E50;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(45, 62, 80, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn.active {
  background: #2D3E50;
  color: white;
  border-color: #2D3E50;
}

.btn-label {
  display: block;
}

.btn-icon {
  font-size: 16px;
  opacity: 0.6;
}

.btn.active .btn-icon {
  opacity: 1;
}

/* ========================================================================== */
/* SELECTED SYSTEM */
/* ========================================================================== */

.selected-system {
  font-size: 13px;
  color: #7A8A99;
  margin-top: 12px;
  padding: 8px 0;
}

/* ========================================================================== */
/* INPUT MODE */
/* ========================================================================== */

.input-mode-toggle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E8EEF2;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #2D3E50;
  gap: 10px;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2D3E50;
}

/* ========================================================================== */
/* INPUT GROUPS */
/* ========================================================================== */

.input-group {
  margin-bottom: 16px;
  width: 100%;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2D3E50;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #D0D6DB;
  font-size: 16px;
  font-family: inherit;
  color: #2D3E50;
  background: white;
  transition: all 200ms ease;
}

.input-field:focus {
  outline: none;
  border-color: #2D3E50;
  box-shadow: 0 0 0 3px rgba(45, 62, 80, 0.1);
}

.input-field::placeholder {
  color: #A8B5C1;
}

/* ========================================================================== */
/* TWO COLUMN */
/* ========================================================================== */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.two-column .input-group {
  margin-bottom: 0;
}

/* ========================================================================== */
/* DIVIDER */
/* ========================================================================== */

.divider {
  height: 1px;
  background: #E8EEF2;
  margin: 24px 0;
}

/* ========================================================================== */
/* RESULTS */
/* ========================================================================== */

.results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 200ms ease;
}

.results-group {
  padding: 0;
}

.results-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #2D3E50;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.7;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F0F4F6;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 14px;
  color: #2D3E50;
  font-weight: 500;
}

.result-value {
  font-size: 18px;
  font-weight: 600;
  color: #2D3E50;
  min-width: 50px;
  text-align: right;
}

.results-divider {
  height: 1px;
  background: #E8EEF2;
  margin: 16px 0;
}

/* ========================================================================== */
/* SUMMARY */
/* ========================================================================== */

.summary-info {
  font-size: 13px;
  color: #7A8A99;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid #E8EEF2;
}

.summary-info strong {
  color: #2D3E50;
  font-weight: 600;
}

/* ========================================================================== */
/* EMPTY STATE */
/* ========================================================================== */

.empty-state {
  text-align: center;
  padding: 40px 0;
}

.empty-state-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 14px;
  color: #7A8A99;
  margin: 0;
}

/* ========================================================================== */
/* INFO TEXT */
/* ========================================================================== */

.info-text {
  font-size: 13px;
  color: #A8B5C1;
  margin-top: 8px;
  font-style: italic;
}

/* ========================================================================== */
/* FOOTER */
/* ========================================================================== */

.footer {
  display: none;
}

/* ========================================================================== */
/* HIDDEN */
/* ========================================================================== */

.hidden {
  display: none !important;
}

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }

  .header h1 {
    font-size: 24px;
  }

  .header {
    margin-bottom: 36px;
  }

  .btn {
    height: 44px;
    font-size: 14px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .result-value {
    font-size: 16px;
  }
}

/* ========================================================================== */
/* ANIMATIONS */
/* ========================================================================== */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: slideIn 200ms ease;
}

/* ========================================================================== */
/* PRINT */
/* ========================================================================== */

@media print {
  body {
    background: white;
  }

  .container {
    padding: 0;
  }
}
