.servidores-container
{
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    max-width: 800px;
    margin: 60px auto;
    color: white;
    height: calc(100vh - 120px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.servidores-container:hover
{
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    transition: box-shadow 0.3s;
}

.servidores-container h1
{
    color: #ECF0F1;
    margin-top: -0px;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
}

.search-and-add
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#server-search
{
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>'); /* Adiciona o ícone de lupa */
    background-size: 20px 20px;
    background-position: 15px center;
    background-repeat: no-repeat;
    padding-left: 45px;
}

#server-search:focus
{
    border-color: #1e90ff;
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.3);
    outline: none;
}

.add-server-btn
{
    padding: 12px 20px;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-server-btn:hover
{
    background-color: #16a085;
    box-shadow: 0 6px 16px rgba(33, 136, 56, 0.25);
    transform: scale(1.05);
}

.add-server-btn:active
{
    background-color: #12846d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.98);
}

#server-list
{
    list-style-type: none;
    padding: 0;
}

.server-details-modal
{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
}

.server-details-content
{
    background: #2C3E50;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 600px;
    max-width: 95%;
    animation: fadeIn 0.3s ease-out;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.server-close-btn, .close-players-btn
{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #ECF0F1;
    cursor: pointer;
}

.server-modal-header
{
    background: #1ABC9C;
    padding: 15px;
    text-align: center;
    color: #FFFFFF;
    border-bottom: 1px solid #16A085;
}

.server-modal-header h4
{
    margin: 0;
    font-size: 18px;
}

.server-modal-header img
{
    margin: 10px 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.server-modal-header h2
{
    margin: 0;
    font-size: 24px;
}

.server-modal-header .server-ip
{
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #355367;
}

.server-modal-info
{
    padding: 20px;
}

.server-main-info
{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.server-info-black
{
    text-align: center;
    background: #34495E;
    padding: 10px;
    border-radius: 8px;
    flex: 1;
    margin-right: 10px;
}

.server-info-black:last-child
{
    margin-right: 0;
}

.server-info-black p
{
    margin: 0;
    color: #ECF0F1;
    font-size: 14px;
}

.server-info-black h3
{
    margin: 5px 0 0;
    font-size: 20px;
    color: #1ABC9C;
}

.server-quick-join-btn, .server-players-btn
{
    width: 100%;
    padding: 10px;
    background: #1ABC9C;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.server-players-btn
{
    margin-bottom: 10px;
}

.server-quick-join-btn:hover, .server-players-btn:hover
{
    background: #16A085;
}

.server-rules
{
    background: #34495E;
    padding: 15px;
    border-radius: 8px;
}

.server-rules table
{
    width: 100%;
    border-collapse: collapse;
}

.server-rules th, .server-rules td
{
    padding: 10px;
    text-align: left;
    color: #ECF0F1;
    border-bottom: 1px solid #2C3E50;
}

.server-rules th
{
    background: #2C3E50;
    font-weight: bold;
}

.server-rules #server-url
{
    color: #1ABC9C;
}

.player-list-modal
{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1F2D3D;
    border-radius: 8px;
    padding: 20px;
    width: 60%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.player-list-content
{
    display: flex;
    flex-direction: column;
}

.player-list-content h3
{
    color: #ECF0F1;
    margin-bottom: 15px;
    margin-top: -0px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}

.player-list h3
{
    color: #ECF0F1;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

.player-list
{
    padding: 0;
    margin: 0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    background: #34495E;
    color: #ECF0F1;
}

.player-list-header
{
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #2C3E50;
    border-bottom: 1px solid #1F2D3D;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

.player-list p
{
    margin-left: 20px;
}

.player-list-header span, .player-item span
{
    flex: 1;
    text-align: center;
}

.player-list-header span:nth-child(1), .player-item span:nth-child(1)
{
    width: 15%;
}

.player-list-header span:nth-child(2), .player-item span:nth-child(2)
{
    width: 40%;
}

.player-list-header span:nth-child(3), .player-item span:nth-child(3)
{
    width: 25%;
}

.player-list-header span:nth-child(4), .player-item span:nth-child(4)
{
    width: 20%;
}

.player-item
{
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #1F2D3D;
    font-size: 16px;
    transition: background 0.3s ease;
}

.player-item:hover
{
    background: #3E566E;
}

.player-item:last-child
{
    border-bottom: none;
}

.form-modal
{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
}

.form-modal-content
{
    background-color: #1e1e1e;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #444;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    max-height: 80vh;
}

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

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

.form-modal-content h2
{
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    color: #f5f5f5;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.form-modal-content p
{
    color: #f5f5f5;
}

.form-modal-content form
{
    display: flex;
    flex-direction: column;
}

.form-modal-content label
{
    margin-top: 10px;
    font-size: 14px;
    color: #ddd;
}

.form-modal-content input[type="text"], .form-modal-content input[type="email"], .form-modal-content input[type="file"]
{
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #555;
    font-size: 14px;
    background-color: #333;
    color: #eee;
}

.form-modal-content input[type="text"]:read-only
{
    background-color: #444;
}

.form-modal-content input[type="file"]
{
    border: none;
    padding: 5px;
    background-color: #2c2c2c;
    color: #bbb;
    cursor: pointer;
}

.form-modal-content input[type="file"]::-webkit-file-upload-button
{
    visibility: hidden;
}

.form-modal-content input[type="file"]::before
{
    content: 'Selecionar arquivo';
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    border: 1px solid #1abc9c;
    border-radius: 5px;
    padding: 5px 10px;
    outline: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.form-modal-content input[type="file"]:hover::before
{
    background-color: #16a085;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.form-modal-content input[type="file"]:active::before
{
    background: #12846d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.98);
}

.form-custom-select
{
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #2c2c2c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-custom-select:hover
{
    border-color: #1abc9c;
}

.form-selected-option
{
    padding: 12px 40px 12px 15px;
    color: #bbb;
    position: relative;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-selected-option::after
{
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #bbb;
    transition: transform 0.3s ease;
}

.form-custom-select.active .form-selected-option::after
{
    transform: translateY(-50%) rotate(180deg);
    color: white;
}

.form-select-options
{
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #333;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    border: 1px solid #555;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-custom-select.active .form-select-options {
    display: block;
}

.form-select-options .option
{
    padding: 12px 15px;
    color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.form-select-options .option:hover
{
    background-color: #1abc9c;
    color: white;
}

.form-custom-select.active .form-selected-option
{
    background-color: #1abc9c;
    color: white;
    border-radius: 8px 8px 0 0;
}

.form-terms-checkbox
{
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #ddd;
}

.form-terms-checkbox a
{
    margin-left: 5px;
    color: #1abc9c;
    text-decoration: none;
}

.form-terms-checkbox a:hover
{
    text-decoration: underline;
}

#form-submit-btn
{
    background-color: #1abc9c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

#form-submit-btn:disabled
{
    background-color: #777;
    cursor: not-allowed;
}
  
#form-submit-btn:not(:disabled):hover
{
    background-color: #16a085;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

#form-submit-btn:not(:disabled):active
{
    background: #12846d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.98);
}

.form-qr-code
{
    display: block;
    margin: 10px auto;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.server-item
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #34495e;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 0.3s ease-out;
}

.server-item:hover
{
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

.server-item img
{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.server-info
{
    flex-grow: 1;
}

.server-info h2
{
    margin: 0;
    font-size: 18px;
    color: #ecf0f1;
}

.server-info p
{
    margin: 5px 0 0;
    color: #bdc3c7;
}

.server-details
{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.server-players
{
    font-size: 14px;
    margin-bottom: 10px;
}

.server-info-btn
{
    padding: 10px 20px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.server-info-btn:hover
{
    transform: scale(1.1);
    background-color: #16a085;
}

.hidden
{
    display: none;
}

/* Responsividades */
@media (max-width: 768px)
{
    .servidores-container
    {
        margin-left: 5%;
        margin-right: 5%;
        padding: 10px;
        font-size: 0.6em;
    }

    .server-info h2
    {
        font-size: 15px;
    }

    .server-info p
    {
        font-size: 12px;
    }

    .server-players
    {
        font-size: 10px;
    }
}

@media (max-width: 480px)
{
    .servidores-container
    {
        margin-left: 5%;
        margin-right: 5%;
        padding: 10px;
        font-size: 0.4em;
    }

    .server-info h2
    {
        font-size: 14px;
    }

    .server-info p
    {
        font-size: 10px;
    }

    .server-players
    {
        font-size: 8px;
    }

    .info-btn
    {
        font-size: 8px;
    }
}