.envelope-finder {
    margin: 20px 0;
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.tab-button {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #354357;
    background-color: #354357;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.tab-button.active {
    background-color: #2a3545;
    border-color: #2a3545;
    color: #fff;
}
.tab-button:hover {
    background-color: #2a3545;
}
.unit-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.unit-button {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #354357;
    background-color: #354357;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.unit-button.active {
    background-color: #2a3545;
    border-color: #2a3545;
    color: #fff;
}
.unit-button:hover {
    background-color: #2a3545;
}
.envelope-finder form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
    position: relative; /* Ensure form is relatively positioned */
}
.input-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.input-row label {
    flex: 1;
    margin-right: 10px;
}
.input-row .input-container {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
}
.input-container input {
    flex: 1;
    padding: 10px;
    border: 2px solid #354357;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
    font-size: 16px; /* Prevent zooming on mobile devices */
}
.input-container input:focus {
    border-color: #2a3545;
    background-color: #fff;
}
#envelope-results-container {
    position: relative;
    margin-top: 20px;
}
#envelope-results {
    width: 100%;
    border-collapse: collapse;
}
#envelope-results th, #envelope-results td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
#envelope-results img {
    max-width: 100%;
    height: auto;
}
#table-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Ensure spinner does not block input interactions */
}
#table-spinner img {
    width: 50px;
    height: 50px;
}
.no-envelopes-found {
    text-align: center;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    color: #155724;
}
.no-envelopes-found a {
    color: #155724;
    text-decoration: underline;
}
.no-envelopes-found a:hover {
    color: #0b2e13;
}
.warning-icon {
    margin-left: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
