* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

#calculatorWrapper {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2, h3, h4 {
    color: black;
    margin-bottom: 10px;
}

header > h2, header > button, header > small > small > button {
    margin-bottom: 0px;
    margin-top: 0px;
}

footer {
    margin-top: 20px;
    text-align: center;
}

label {
    display: block;
    margin-top: 10px;
    color: #666;
}

input, select {
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#welcomeMessage {
    margin-top: 20px;
}

.footer-link {
    color: #0275d8;
    text-decoration: none;
    margin-left: 5px;
    margin-right: 5px;
}

.blue-highlight {
    color: #0275d8;
    font-weight: bold;
}

#entityInfo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#entityInfo > label {
    grid-column: span 1;
}

#entityInfo > input, #entityInfo > select {
    width: 100%;
    grid-column: span 1;
}

#taxCreditSection > input, #taxCreditSection > select {
    width: min-content;
}

span.orSpan {
    margin-left: 8px;
    margin-right: 8px;
}

input[type="checkbox"] {
    margin-top: 10px;
}

input[data-type="currency"] {
    width: 120px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    /* border-radius: 10px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid grey;
}

th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

td.dates {
    display: flex;
    align-items: center;
}

th {
    background-color: #0275d8;
    color: white;
    border-bottom: 2px solid #025aa5;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Giving the first and last td rounded corners */
tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

#lockAmendmentDateButton {
    background-color: #0275d8;
    color: white;
    border: none;
    padding: 0px 0px;
    margin-top: 0px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

#lockRefundDateButton {
    background-color: #0275d8;
    color: white;
    border: none;
    padding: 0px 0px;
    margin-top: 0px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

button {
    background-color: #0275d8;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}


button:hover {
    background-color: #025aa5;
}

#resultsSection, #auditTableSection {
    margin-top: 30px;
}

.customDateInput:disabled {
    background-color: #ececec;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #calculatorWrapper {
        padding: 10px;
    }

    label, input, select, button {
        font-size: 14px;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #0275d8;
    border-radius: 4px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #025aa5;
}

.signup-link {
    margin-top: 20px;
}

.signup-link a {
    color: #0275d8;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.signup-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-link, .signup-link {
    margin-top: 20px;
}

.login-link a, .signup-link a {
    color: #0275d8;
    text-decoration: none;
}

.login-link a:hover, .signup-link a:hover {
    text-decoration: underline;
}

.blur-effect {
    filter: blur(4px);
    user-select: none;
    position: relative;
}

.auditTable, .blur-effect h4 {
    /* Ensuring the blur effect applies to all content within a .blur-effect section */
    filter: inherit;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    font-size: 20px;
}
  
.overlay p {
    margin: 0;
    padding: 20px;
}

.content-wrapper {
    position: relative;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: 12px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  padding: 3px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}