.custom-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    justify-content: center;
    align-items: center;
    z-index: 1000; 
}

.modal-content {
    background-color: #fff; 
    padding: 25px;
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    width: 100%;
    max-width: 400px; 
    text-align: center; 
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff0000; 
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.modal-form label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: left; 
}

.modal-input {
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    border-color: #007bff; 
    outline: none; 
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-button:hover {
    transform: translateY(-2px); 
}

.primary-button {
    background-color: #007bff; 
    color: white; 
}

.primary-button:hover {
    background-color: #0056b3; 
}

#leftBottomPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 15px 0;
}

.modal-server-status {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-server-list {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#servers-list-button {
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 180px;
}

#servers-list-button.offline {
    background-color: #ff4444; 
}

#servers-list-button.online {
    animation: pulse 1.5s infinite; 
}

#servers-list-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#servers-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%; 
}

.server-button {
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left; 
    position: relative; 
    width: 100%; 
}

.server-button:hover {
    background-color: #45a049; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.server-button.current-server {
    background-color: #004085; 
    cursor: not-allowed; 
    padding-left: 45px; 
}

.server-button.current-server::before {
    content: "✔️"; 
    position: absolute;
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 18px; 
}

#servers-status-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.3px;
}

#close-modal-servers {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    cursor: pointer; 
    transition: color 0.3s ease;
}

#close-modal-servers:hover {
    color: #ff0000; 
}

#rightPanel {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 20px; 
}

#title {
    margin-bottom: 15px; 
}

.form-group {
    margin-bottom: 15px; 
    width: 100%; 
}

#server-ip-input {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
}

#connect-button {
    background-color: #4CAF50; 
    color: white;
    border: none;
    padding: 12px 20px; 
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%; 
    margin-top: 10px; 
}

#connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#connect-button.online {
    animation: pulse 1.5s infinite; 
}

a {
    outline: none; 
}