/* Reset global */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* General button styling */
button {
    padding: 10px;
    background-color: #5a3f91;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7656bf;
}

/* Login Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #5a3f91;
    color: white;
}

.login-container h1 {
    font-size: 2.5rem; /* Tamaño del título mejorado */
    margin-bottom: 30px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.login-container input {
    padding: 12px; /* Aumenta ligeramente el tamaño */
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff; /* Fondo blanco para mejor visibilidad */
}

.login-container button {
    padding: 12px; /* Tamaño uniforme con los campos */
    font-size: 1.2rem; /* Botón más destacado */
    font-weight: bold;
    background-color: #6b4fb1; /* Color ligeramente más claro */
}

.login-container button:hover {
    background-color: #9474d1;
}

/* Catalog Styles */
.header {
    background-color: #5a3f91;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 1.5rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.search-bar input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#user-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    height: 60px; /* Incremento del 20% respecto al tamaño anterior */
    width: auto;
    border-radius: 50%;
}

.user-info {
    flex: 1;
    margin-left: 10px;
}

.actions {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-height: 90%;
    max-width: 90%;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-content img {
    max-height: 80vh;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    background: white;
    border-radius: 50%;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: 15px;
    }

    #close-modal {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        line-height: 23px;
        font-size: 16px;
    }

    .search-bar input {
        width: 100%;
    }
}
