/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    height: 100vh;
    width: 100%;
    height: 100vh;
    margin: auto;
    font-family: 'Ubuntu';
}

/* Form principal */
form[action="checkview"]:not(.room-form) {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 5px;
    width: 100%;
    max-width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form[action="checkview"]:not(.room-form) label {
    font-weight: 600;
}

form[action="checkview"]:not(.room-form) input[type="text"] {
    padding: 10px 14px;
    background: transparent;
    color: white;
    border: 3px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

form[action="checkview"]:not(.room-form) input[type="text"]:focus {
    outline: none;
    border-color: #6c63ff;
}

form[action="checkview"]:not(.room-form) button {
    padding: 12px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form[action="checkview"]:not(.room-form) button:hover {
    background: #554dde;
}

/* Salas disponíveis */
.div-rooms {
    width: 100%;
    max-width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 24px;
    border-radius: 5px;
    overflow-y: scroll;
}

.div-rooms::-webkit-scrollbar {
    width: 6px;
}

.div-rooms::-webkit-scrollbar-track {
    background: #201942;
}

.div-rooms::-webkit-scrollbar-thumb {
    background: #6963cf;
}

.div-rooms label {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 16px;
}

/* Cada botão de sala */
.room-form {
    margin-bottom: 12px;
}

.room-form button {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: white;
    border: 3px solid #6c63ff;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-form button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.room-form button p {
    margin: 0;
    font-weight: 500;
}

/* Responsividade para celulares */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        padding: 20px 10px;
    }

    form[action="checkview"]:not(.room-form),
    .div-rooms {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .div-rooms {
        height: auto;
        max-height: 400px;
    }

    .room-form button {
        font-size: 0.95rem;
        padding: 12px;
    }
}