/* Header styles */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.button-header {
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.dropbutton {
    position: absolute;
    left: 0;
    margin-top: 0.25rem;
    width: 12rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.dropitem {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4B5563;
    transition: color 0.2s;
}

.dropitem:hover {
    color: #FFFFFF;
}

.group .dropbutton {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.group:hover .dropbutton {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
}

#mobile-menu-button {
    position: fixed;
    top: 5px;
    right: 5px;
}





/* Footer styles */
.footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 5px 20px;
}

.footer-expanded {
    opacity: 0;
    padding-top: 20px;
    transition: all 0.5s ease;
}

footer:hover .footer-compact {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

footer:hover .footer-expanded {
    opacity: 1;
    transition: opacity 1s ease-out;
}

footer {
    font-size: 0.8rem;
    transition: all 0.3s ease;
    transform: translateY(calc(100% - 40px));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

footer:hover {
    transform: translateY(0);
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer p {
    margin-bottom: 0;
}

footer::before {
    content: "▲ MercaElx";
    display: block;
    text-align: center;
    cursor: pointer;
}

footer:hover::before {
    content: "▼ MercaElx";
}





/* Main content styles */
.banner-elx {
    align-items: center;
    background-image: url('../images/banner.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 250px;
    justify-content: center;
}

.banner-elx h1 {
    background-color: rgba(221, 166, 58, 0.5);
    border-radius: 10px;
    color: white;
    font-family: 'Lucida Bright Demibold', 'Times New Roman', Times, serif;
    font-size: 2.25rem;
    padding: 10px;
    text-align: center;
    text-decoration: underline;
    width: fit-content;
}

.banner-elx > h1 {
    background-color: rgba(221, 166, 58, 0.5);
    color: white;
    font-size: 2.25rem;
    text-align: center;
    text-decoration: underline;
}

.detail-image {
    align-items: center;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    padding: 0.5em;
}

.responsive-card {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .responsive-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.landing-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.landing-section {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    gap: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

main {
    margin-bottom: 40px;
    padding-top: 3.5rem;
    width: 100%;
}

i {
    color: rgb(0, 96, 137);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}



/* Formulario styles*/

.form {
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.form-button {
    background-color: rgba(221, 166, 58);
    border-radius: 0.25rem;
    color: white;
    padding: 0.75rem 1.5rem;
    transition: transform 0.2s;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    appearance: none;
    border-radius: 0.25rem;
    color: #4B5563;
    flex: 1;
    line-height: 1.25rem;
    outline: none;
    padding: 0.5rem 1rem;
    width: 100%;
}

.form-label {
    color: #4B5563;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-textarea {
    height: 8rem;
}

.input-group {
    align-items: center;
    border-bottom: 1px solid #9CA3AF;
    border-radius: 0.375rem;
    display: flex;
    padding: 0.5rem 0;
}

/*Login styles*/

.login-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 28rem;
    padding: 2rem;
    width: 100%;
}

.login-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.login-header {
    color: #1D4ED8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}


/* List styles */
.table-list {
    border: 1px solid #4B5563;
    border-collapse: collapse;
    border-radius: 0.5rem;
    min-width: 100%;
    overflow: hidden;
}

.table-list a {
    text-decoration: none;
}

.table-list a:hover {
    text-decoration: underline;
}

.table-list tbody tr:hover {
    background-color: #f9f9f9;
}

.table-list td {
    cursor: pointer;
    padding: 1rem;
}

.table-list thead th {
    color: white;
    padding: 1.5rem;
    text-align: left;
}


/* Button styles */
button {
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
}

button > i {
    color: white;
}

.button-cancel {
    background-color: #6B7280;
    color: white;
    margin: 0.4rem;
}

.button-create,
.button-edit,
.button-login {
    background-color: rgba(221, 166, 58);
    color: white;
    margin: 0.4rem;
}

.button-delete,
.button-register {
    background-color: #EF4444;
    color: white;
    margin: 0.4rem;
}