:root {
    --color1: #1b2cec;
    --color2: #1435d9;
    --color3: #0f2fc9;
    --color4: #0a29b6;
    --color5: #0B3895;
}

p {
    cursor: default;
}

body{
    font-family: sans-serif;
}

a {
    color: #0B3895;
    text-decoration: none;
    padding: 5px 5px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-family: sans-serif;
    font-size: 20px;
}

a:hover {
    color: #1b2cec; 
}

span {
    color: #0B3895;
}

span:hover {
    color: #1435d9;
}

.barraSuperior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    background-color: white;
    border-radius: 9px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}
.barraSuperior a h1{
    color: #242424;
    span{
        cursor: pointer;
    }
}

nav {
    display: flex;
    gap: 15px;
}


.usuario-info {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.usuario-icono {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    margin-left: 8px;
}

#usuario-nombre {
    font-weight: bold;
    color: #333;
}


.usuario-menu {
    display: none;
    position: absolute;
    width: max-content;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    padding-left: 0px;
    z-index: 1000;
}


.usuario-menu a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-radius: 4px;
    gap: 10px;
    margin: 1px 0px;

}


.usuario-menu a img {
    width: 20%;
    height: auto;
    flex-shrink: 0;
}

.usuario-menu a:hover {
    background-color: #f0f0f0;
}


.usuario-info:hover .usuario-menu {
    display: block;
}


.titulos {
    text-align: center;
    color: #1d1d1d;
    font-size: 30px;
    margin-bottom: 20px;
    font-family: sans-serif;
}


#contenedor-principal {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
}

#contenedor-prestamos, #gestionar-solicitudes{
    margin-top: 40px;
    overflow-x: scroll;
}


table {
    width: 98%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 20px;
    font-family: sans-serif;
}

th, td {
    border: 1px solid #ddd;
    padding: 5px;
    margin: 0;
    text-align: center;
    font-size: 18px;
}

th {
    background-color: #4599f1;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

td a {
    color: #4098f7;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
    color: #4098f7;
}

tr:nth-child(even) {
    background-color: #f4f4f4;
}

tr:hover {
    background-color: #e9f5ff;
}
#gestionar-solicitudes p, #contenedor-prestamos p{
    color: #000000;
    font-size: 20px;
    font-family: sans-serif;
    margin: 0;
    padding: 5px;
}


.boton-verde, .boton-rojo {
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    width: 35%;
    min-width: fit-content;
}

.boton-verde {
    background-color: hsl(118, 64%, 45%);
}

.boton-verde:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.boton-rojo {
    background-color: #ff0000;
    margin-left: 10px;
}

.boton-rojo:hover {
    background-color: #a70212;
    transform: scale(1.05);
}

.centrados {
    vertical-align: middle;
    text-align: center;
    font-size: 16px;
}

td select {
    width: max-content;
    max-width: 200px;
    padding: 8px;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}


td select:hover {
    transform: scale(1.05);
}

td select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}







.btn-recibir {
    background-color: #4CAF50;
    color: white; 
    border: none; 
    border-radius: 5px; 
    padding: 10px; 
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s, transform 0.2s;
}


.btn-recibir:hover {
    background-color: #45a049; 
    transform: scale(1.05);
}


.btn-recibir:active {
    background-color: #3e8e41;
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.btn-recibir:disabled {
    background-color: #cccccc;
    color: #666666; 
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none;
}








@media (max-width: 1024px) {
    .barraSuperior {
        flex-direction: column;
        padding: 10px;
        height: auto;
        text-align: center;
    }

    .barraSuperior nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin: 20px 0;
        width: 100%;
    }
    
    .barraSuperior nav a {
        font-size: 22px;
        padding: 5px;
    }
    
    #logo {
        font-size: 50px;
        padding: 0;
        margin: 10px 0;
    }

    
    .input {
        width: 90%;
        min-height: 50px;
        font-size: 14px;
    }
    

    .usuario-icono {
        width: 36px;
        height: 36px;
    }

    .usuario-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        padding: 8px;
        z-index: 1000;
        width: max-content;
    }

    .usuario-menu a {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        color: #333;
        text-decoration: none;
        font-size: 12px;
        border-radius: 4px;
        gap: 10px;
        margin: 5px 0;
        
    }

    .usuario-menu a:last-child {
        border-bottom: none;
    }

    .usuario-menu a img {
        width: 28px;
        height: 28px;
    }

    .usuario-menu a:hover {
        background-color: #f0f0f0;
    }

    .usuario-info:hover .usuario-menu {
        display: block;
        animation: fadeIn 0.2s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    body {
        font-size: 14px;
    }










    
    #contenedor-principal {
        padding: 0px;
        width: 100%;
    }

    .titulos {
        font-size: 20px;
    }

    table {
        width: 100%;
        font-size: 14px;
    }

    td a, th{
        padding: 5px;
        margin: 0;
        font-size: 15px;
    }

    td, #gestionar-solicitudes p{
        padding: 5px;
        margin: 0;
        font-size: 15px;
    }

    .boton-verde, .boton-rojo {
        font-size: 12px;
        padding: 6px 8px;
        margin: 5px;
        box-sizing: border-box;
    }
    td select {
        font-size: 12px;
        padding: 6px;
        width: fit-content;
        max-width: 80px;
    }
}