/* ===== Reset y Configuración Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #002028;
}

/*Contenedor donde está el sidebar*/
.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 30%;
    background-color: #002028;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/*Logo superior*/
.logo img {
    width: 80%;
    max-width: 400px;
    margin-bottom: 30px;
}

.menu {
    width: 100%;
}

.menu-btn:hover {
    background-color: #e03b23;
    border-color: #fff;
}

.menu-btn {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 10px; /* Bordes redondeados */
    color: #fff;
    font-size: 1.7em;
    text-align: center; /* Texto centrado */
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#send-request {
    margin: 10px 10px 0 10px;
    padding: 10px 20px;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.content {
    width: 70%;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.page-content{
    min-height: 100%;
}

.hidden {
    display: none;
}

/* ===== Barra Superior para Móviles ===== */
.top-nav, .mobile-menu{
    display: none; /* solo visible en móviles */
}

.nav-logo-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background-color: #002028;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-menu.open {
    max-height: 500px; /* Ajusta según la altura aproximada de tu menú */
    opacity: 1;
}


.nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #002028;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-width: 400px;
}

.input-section, .qr-section {
    margin-bottom: 20px;
}

input[type="text"]{
    width: 200px;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#qrcode {
    margin-top: 20px;
}




/* ===== Responsividad ===== */
@media (max-width: 768px) {
    /* Se muestra la barra superior y el menú móvil */
    .top-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        background-color: #002028;
        color: #fff;
        padding: 10px 20px;
        height: 60px;
        overflow: hidden;
    }

    .nav-logo {
        max-width: 60%;
        display: flex;
        align-items: center;
    }

    .nav-logo-img {
        max-height: 60px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .mobile-menu {
        display: flex;
    }

    /* Se oculta el sidebar */
    .sidebar {
        display: none;
    }
    /* El contenedor principal se adapta a columna */
    .container {
        display: block;
        height: auto;
    }
    .content {
        width: 100%;
    }

    .qr-container {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

    .input-section,
    .qr-section {
        margin-bottom: 20px;
        text-align: center;
    }

    .input-section input[type="text"] {
        width: 100%;
        margin: 10px 0;
    }

    .input-section button {
        width: 100%;
    }

    #send-request{
        max-width: 90%;
    }

    #qrcode {
        max-width: 100%;
        height: auto;
    }
}

    @media (min-width: 769px) {
        .top-nav,
        .mobile-menu {
            display: none;
        }

        .sidebar {
            display: flex;
        }
    }

