 /* === Basic Reset & Body === */
 header {
     width: 100%;
 }


    /* === Container === */
    .container {
      max-width: 800px;
      margin: 0 auto;
      background: #fff;
      padding: 20px;
      border-radius: 4px;
    }
    h2 {
        text-align: left !important;
    }
    h3 {
        text-align: left;
    }
    p {
        text-align: left;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    /* === Header === */
    .header {
      background-color: #003c7e;
      color: #fff;
      padding: 15px;
      margin-bottom: 20px;
      border-radius: 4px;
    }
    .header h1 {
      margin: 0;
      font-size: 1.2em;
    }
    .subheader {
      font-size: 0.9em;
      margin-top: 5px;
      opacity: 0.9;
      margin-bottom: 10px;
    }
    /* === Sections === */
    .section {
      border: 1px solid #ccc;
      padding: 15px;
      margin-bottom: 20px;
      border-radius: 4px;
      background: #eee;
    }
    .section h2 {
      color: #003c7e;
      margin-bottom: 15px;
      font-size: 1.2em;
      text-align: left;
    }
    .section h3 {
      margin-top: 20px;
      font-size: 1em;
      color: #003c7e;
      text-align: left;
    }
    .section p {
      margin-bottom: 10px;
      line-height: 1.4em;
    }
    /* === Form Fields === */
    .form-row {
      display: flex;
      flex-wrap: wrap;
      margin: 0 -5px;
    }
    .form-group {
      flex: 1;
      padding: 0 5px;
      margin-bottom: 10px;
    }
    .section label {
      display: block;
      margin-bottom: 3px;
      font-size: 0.9em;
      font-weight: 600;
    }
    .section input[type="number"],
    .section input[type="text"] {

      padding: 7px;
      margin-bottom: 5px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 0.9em;
    }
    .section select {
      width: 100%;
      padding: 7px;
      margin-bottom: 5px;
      font-size: 0.9em;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    /* === Buttons === */
    .buttons {
      margin-top: 10px;
    }
    .buttons button {
      background-color: #003c7e;
      color: #fff;
      border: none;
      padding: 8px 16px;
      margin-right: 10px;
      cursor: pointer;
      font-size: 0.9em;
      border-radius: 4px;
    }
    .buttons button:hover {
      opacity: 0.9;
    }
    /* === Results === */
    .result-box {
      margin-top: 15px;
      background-color: white !important;
      padding: 15px;
      border-left: 4px solid #003c7e;
      border-radius: 4px;
    }
    .result-box h3 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 1em;
      color: #003c7e;
    }
    .chart-container {
      width: 100%;
      margin: 20px 0;
      min-height: 300px;
    }
    /* === Collapsible Table Toggle === */
    .toggle-table-btn {
      display: inline-block;
      margin-top: 10px;
      background-color: #777;
      padding: 6px 12px;
      border-radius: 4px;
      color: #fff;
      font-size: 0.8em;
      cursor: pointer;
      text-decoration: none;
    }
    .toggle-table-btn:hover {
      background-color: #555;
    }
    .collapsed-content {
      display: none;
      margin-top: 10px;
    }
    /* === Table Styles === */
    .table-scroll {
      overflow-x: auto;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      margin: 10px 0;
      font-size: 0.9em;
    }
    table thead {
      background-color: #eee;
    }
    table th,
    table td {
      border: 1px solid #ccc;
      padding: 2px;
      text-align: left;
    }
     #retirement-cal-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
 #retirement-cal-text h3 {
    text-align: left;
    margin-top: 20px;
}
    /* === Responsive Adjustments: Squeeze Tables on Mobile === */
    @media (max-width: 600px) {
          .container {
    margin: 10px;
padding: 10px;
width: 90%;
    }
      .form-row {
        flex-direction: column;
        margin: 0;
      }
      .form-group {
        padding: 0;
        margin-bottom: 10px;
      }
      table {
        font-size: 0.5em;
      }
      table th, table td {
        padding: 1px;
        width: 90%;
      }
           #retirement-cal-text {
    text-align: left;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    width: 90%;
}
    }