* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #f3ece7;
    color: #4b2e19;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    ;
    min-height: 100vh;
}

h1,
h2 {
    color: white;
    background-color: #6f4e37;
    padding: 10px;
    border-top-left-radius : 8px;
    border-top-right-radius : 8px;
    text-align: center;
}

/* Estilo da tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.1);
}

table th {
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

table td {
    padding: 10px;
    text-align: left;
    text-align: center;
}

.td-actions {
    gap: 5px;
    justify-content: center;
}

table tr:nth-child(odd) {
    background-color: #facb9a;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #602b10;
    /* roxo claro */
    border-radius: 4px;
    box-sizing: border-box;
    background: #fbe8df;
    /* roxo bem claro */
    color: #9c3908;
}

/* Estilo dos botões */
button,
a,
input[type="submit"] {
    font-size: 16px;
    font-weight: bold;
    background-color: #a67c52;
    color: #fff8f0;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 1s;
    text-decoration: none;
}

a:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #6f4e37;
    text-decoration: none;
}


nav {
    position: fixed;
    background-color: #6f4e37;
    height: 70px;
    width: 100%;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
    display: flex;
    padding: 0 1rem;
}

.logo {
    font-size: 25px;
    position: relative;
    left: 5%;
    color: #fff8f0;
    font-weight: bold;
    line-height: 70px;
}

.logoImage {
    width: 70px;
    height: 70px;
    left: 20px;
    top: 15px;
}

.ulNav {
    display: inline-flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
    flex-direction: row;
    gap: 0.2rem;
    margin: 0;
}

.liNav {
    display: inline-block;
    line-height: 70px;
    margin: 0 5px;
}

.aNav {
    text-decoration: none;
    color: #fff8f0;
    /* quase branco, para contraste */
    font-size: 14px;
    transition: color 0.2s;
}

.aNav:hover {
    text-decoration: underline;
    color: #f0783d;
    /* roxo claro */
}

.mainContainer {
    padding-top: 80px;
    background: #fff8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.1);
    background-color: #ffe2d0;
    flex-grow: 1;
}

.content{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #facb9a;
    padding: 10px;
}

.buttonBar {
    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;
}

.message {
    background-color: #6f4e37;
    color: #fff8f0;
    padding: 10px;
    border-radius: 4px;
    margin: auto;
    margin-bottom: 10px;
    width: fit-content;
    text-align: center;
    font-weight: bold;
}

.warning {
    background-color: #6f4e37;
    color: #eaff00;
    padding: 10px;
    border-radius: 4px;
    margin: auto;
    margin-bottom: 10px;
    width: fit-content;
    text-align: center;
    font-weight: bold;
}


.danger {
    background-color: #f60a0a;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.coffee-bean {
    cursor: pointer;
    transition: transform 0.1s;
    display: inline-block;
    vertical-align: middle;
}

.coffee-bean.filled svg ellipse {
    cursor: pointer;
    fill: #88481b;
}

.coffee-bean svg ellipse {
    cursor: pointer;
    fill: none;
}

.coffee-bean:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.th-avaliacao {
    width: 150px;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
}

#footer {
    background-color: #6f4e37;
    color: #fff8f0;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* autocomplete */
#suggestions {
    border: 3px solid #6f4e37;
    max-height: 150px;
    overflow-y: auto;
    background: white;
}

.suggestion {
    padding: 8px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #eee;
}

/* end autocomplete */

/* Modal Window */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
}

/* Modal content box */
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Close button */
.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

.close:hover {
    color: red;
    font-weight: bold;
}

/* Small fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End Modal Window */

/* Ajustes para telas maiores (tablet e desktop) */
@media (min-width: 750px) {

    .ulNav {
        flex-direction: row;
        float: right;
        margin-right: 40px;
    }

    .liNav {
        display: inline-block;
        margin: 0 10px;
    }

    .mainContainer {
        padding-top: 90px;
        padding-left: 2rem;
        padding-right: 2rem;
        margin: 0 auto;
        width: 70%;
    }

    h1,
    h2 {
        font-size: 2rem;
    }

    .logoImage {
        width: 70px;
        height: 70px;
        left: 20px;
        top: 15px;
    }
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f3e8ff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
    margin-top: 8px;
}

@media (max-width: 750px) {
    nav {
        flex-direction: column;
        height: 70px;
        padding: 0.5rem 1rem;
        position: fixed;
        width: 100%;
        z-index: 1;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        z-index: 2;
        background: none;
        border: none;
        color: #f3e8ff;
        font-size: 2rem;
        cursor: pointer;
        margin-left: auto;
    }

    .ulNav {
        text-align: center;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        margin: auto;
        width: 90%;
        gap: 20px;
        display: none;
        /* Esconde o menu por padrão */
        background: #6f4e37;
    }

    .ulNav.active {
        display: flex;
        /* Mostra o menu quando ativo */
    }

    .liNav {
        width: 100%;
        display: block;
        margin: 0;
        line-height: 2.5;
    }

    .aNav {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .logo {
        margin-bottom: 0.5rem;
        left: 0;
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .mainContainer {
        margin-top: auto;
        padding-top: 90px;
        padding-left: 1rem;
        padding-right: 1rem;
        height: fit-content;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .breakable-text {
        word-break: break-word;
        white-space: normal;
        font-size: 0.95rem;
    }

    .ocult-mobile {
        display: none;
    }

    /* Estilo da tabela */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        overflow-x: auto;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(111, 78, 55, 0.1);
    }

    table th {
        padding: 15px;
        text-align: center;
        font-weight: bold;
    }

    table td {
        padding: 10px;
        text-align: left;
        text-align: center;
    }

    .td-actions {
        gap: 5px;
        justify-content: center;
    }

    table tr:nth-child(odd) {
        background-color: #facb9a;
    }

    .logoImage {
        width: 40px;
        height: 40px;
        left: 20px;
        top: 15px;
    }

    /* Modal content box */
    .modal-content {
        width: 80%;
    }
    
}