/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
  }
  body {
    margin-bottom: 40px; /* Margin bottom by footer height */    
  }

  .navbar-brand-img {
    margin: 10px 25px 0px 10px;
  }

  .navbar-brand-img-desktop {
    height: 35px;
    width: auto;
    object-fit: contain;
  }

  .navbar-brand-img-desktop2 {
    height: 50px;
    width: auto;
    object-fit: contain;
  }

  .bg-green{
    background-color: #34B233;    
  }

  .app-navbar {
    top: 0;
    z-index: 1030;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  }

  body {
    background: linear-gradient(180deg, #f5f7fb 0%, #edf2f7 100%);
    color: #111827;
  }

  .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .row {
    row-gap: 1.25rem;
  }

  .row.g-3 {
    gap: 1rem;
  }

  .row + .row {
    margin-top: 1.5rem;
  }

  .content {
    min-height: 78vh;
  }

  .textarea {
    min-width: 100%;
  }

  .tooltip-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .tooltip-container label.form-label {
    position: relative;
    width: 100%;
    margin-bottom: 0.15rem;
    padding: 0;
    background: transparent;
    color: #495057;
    font-size: 0.92rem;
    white-space: normal;
    flex: 0 0 auto;
  }

  .tooltip-container .form-control {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.6rem;
  }

  .tooltip-container .custom-tooltip {
    top: auto;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.35rem;
  }

  .tooltip-container.mb-3,
  .tooltip-container {
    margin-bottom: 0.5rem;
  }

  .table .tooltip-container,
  .table th .tooltip-container,
  .table td .tooltip-container {
    margin-bottom: 0 !important;
    gap: 0;
    display: block;
  }

  .card-body {
    padding: 1rem;
  }

  .card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    background-color: rgba(255, 255, 255, 0.98);
  }

  .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
  }

  .form-label {
    color: #374151;
    font-weight: 600;
    width: 25%;
    float: left;
  }

  .form-control {
    border-radius: 0.75rem;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    width: 75%;
    float: right;
  }

  .table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    overflow: visible;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    font-size: 0.9rem;
  }

  /* Clip corner cells so the rounded border still looks correct */
  .result-table thead tr:first-child th:first-child { border-top-left-radius: calc(1rem - 1px); border-bottom-left-radius: 0; }
  .result-table thead tr:first-child th:last-child  { border-top-right-radius: calc(1rem - 1px); border-bottom-right-radius: 0; }
  .result-table tr:last-child td:first-child,
  .result-table tr:last-child th:first-child { border-bottom-left-radius: calc(1rem - 1px); }
  .result-table tr:last-child td:last-child,
  .result-table tr:last-child th:last-child  { border-bottom-right-radius: calc(1rem - 1px); }

  /* No rounded bottom corners on any th inside the table */
  .result-table th { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

  .result-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
  }

  .result-table__col-label {
    width: 48%;
  }

  .result-table__col-value {
    width: 26%;
  }

  .result-table--narrow-label .result-table__col-label {
    width: 30%;
  }

  .result-table--narrow-label .result-table__col-value {
    width: 35%;
  }

  .table th,
  .table td {
    padding: 0.45rem 0.7rem;
    vertical-align: middle;
    border-color: rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
  }

  .list-indented {
    padding-left: 2rem;
  }

  .btn-disclaimer {
    display: inline-block;
    color: #284f33;
    background-color: rgba(43, 143, 67, 0.1);
    border: 1px solid rgb(198, 226, 205);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
  }

  .btn-disclaimer:hover,
  .btn-disclaimer:focus {
    color: #14532d;
    background-color: rgba(43, 143, 67, 0.08);
    text-decoration: none;
  }

  .info-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
  }

  .info-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .info-hero-image {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0.5rem 0 0.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  }

  .info-hero-image-bottom {
    display: block;
    flex: 0 0 240px;
    align-self: flex-end;
    margin-left: auto;
  }

  @media (max-width: 768px) {
    .info-layout {
      flex-direction: column;
    }

    .info-hero-image {
      max-width: 220px;
      align-self: center;
      margin-bottom: 0.5rem;
    }

    .info-hero-image-bottom {
      margin-left: auto;
      margin-right: auto;
    }
  }

  .result-table th,
  .result-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .result-table td:first-child,
  .result-table th:first-child {
    color: #1f2937;
    font-weight: 600;
  }

  .table th p,
  .table td p {
    margin: 0;
  }

  .table th.table-warning .tooltip-container {
    margin-bottom: 0;
  }

  .table tbody tr {
    line-height: 1.05;
  }

  .result-table tr:last-child td,
  .result-table tr:last-child th {
    border-bottom-width: 0;
  }

  @media (max-width: 992px) {
    .result-table {
      font-size: 0.95rem;
    }

    .table th,
    .table td {
      padding: 0.4rem 0.55rem;
    }
  }

  .chart-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    background-color: rgba(255, 255, 255, 0.98);
  }

  .chart-card .card-body {
    padding: 1rem;
  }

  .chart-container {
    height: 50vh;
    min-height: 260px;
    width: 100%;
    position: relative;
  }

  .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
  }
  
  .footer {
    height: 30px; /* Set the fixed height of the footer here */    
    color: white;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
  }

  .footer > div {
    margin-top: 5px;
  }

  /* Custom page CSS
   * Not required for template or sticky footer method.
   * -------------------------------------------------- 
  
  .container {
    padding: 60px 15px 0;
  }
  .container .text-muted {
    margin: 7px 0;
  }
  
  .navbar-brand {
    padding: 0px;
  }
  
  .navbar-brand>img {
    height: 100%;
    width: auto;
  }
  
  .navbar-text {
      position: absolute;
      width: 100%;
      left: 0;
      text-align: center;
      margin: auto;
      padding-top: 10px;
  }
*/

.sticky-submit {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 1050;
}

.btn-bereken {
  min-width: 180px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: #006B01;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 32px rgba(43, 143, 67, 0.24);
  color: #fff;
}

.btn-bereken:hover,
.btn-bereken:focus {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 18px 36px rgba(43, 143, 67, 0.30);
}

.btn-bereken::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 18px;
  background: rgba(70, 192, 107, 0.18);
  border-radius: 999px;
  filter: blur(10px);
  z-index: -1;
}

.btn-bereken::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scaleX(0.95);
  width: 210px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  z-index: -1;
}

.sticky-submit::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 18px;
  background: rgba(52, 178, 51, 0.18);
  border-radius: 999px;
  filter: blur(10px);
  z-index: -1;
}

.sticky-submit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scaleX(0.9);
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  z-index: -1;
}


