/* Make Account ID section a flex container */
.account-id-section {
    display: flex;
    align-items: center; /* Vertically align items */
    margin-bottom: 20px; /* Maintain spacing */
}

/* Style label in the flex container */
.account-id-section label {
    margin-right: 10px; /* Space between label and input */
    margin-bottom: 0; /* Remove bottom margin as it's now inline */
    white-space: nowrap; /* Prevent label text wrapping */
    flex-shrink: 0; /* Prevent label from shrinking */
}

/* Style input in the flex container */
.account-id-section .account-id-input {
    width: 350px; /* Keep fixed width */
    margin-right: 10px; /* Space between input and button */
    margin-bottom: 0;
    flex-shrink: 0; 
}

/* New spacer style - no longer needs to grow */
.account-id-section .spacer {
    /* flex-grow: 1; */ /* Remove flex-grow */
}

/* Style button in the flex container */
.account-id-section button {
    padding: 5px 10px;
    white-space: nowrap;
    /* margin-right: 5px; */ /* No margin needed before status */
    flex-shrink: 0;
}

/* Style status indicator in the flex container */
.account-id-section .status-indicator {
    margin-left: 5px; /* Space between button and indicator */
    font-size: 1.2em;
    min-width: 1em;
    display: inline-block;
    flex-shrink: 0;
}

/* Remove the old .input-with-button styles if no longer needed elsewhere */
/* (Assuming they are not used elsewhere, otherwise keep them) */
/* 
.input-with-button {
    display: flex;
    align-items: center; 
}

.input-with-button input[type="text"] {
    flex-grow: 1; 
    margin-right: 5px; 
}

.input-with-button button {
    padding: 5px 10px; 
    white-space: nowrap; 
}
*/ 

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more specific, e.g., 400px */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #333;
}

.modal p {
    color: #555;
}

.modal-options {
    margin-top: 15px;
    margin-bottom: 20px;
}

.modal-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.modal-buttons {
    text-align: right;
}

.modal-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.modal-buttons button:first-child {
    background-color: #4CAF50; /* Green */
    color: white;
}

.modal-buttons button.cancel-btn {
    background-color: #f44336; /* Red */
    color: white;
}

.modal-buttons button:hover {
    opacity: 0.9;
} 