:root {
    --white: #F7E0B7;
    --transparent-white: rgba(247,224,183, 0.5); 
    --red: #e83535;
    --italygreen: #28a745; 
    --gray: #f4c77f;
    --green: #385140;
    --brown: #B55F35;
    --beige: #D38D47;
    --light-green: #CBBF98;
}

.install-bar {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: #000;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}
.install-bar span {
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
}
#btn-adicionar {
    background-color: var(--beige);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}
#btn-adicionar:hover {
    opacity: 0.9;
}
#btn-adicionar:active {
    transform: scale(0.95);
}

body{
    background-color: var(--white);
}
#app_body {
    background-image: url('../img/background-5.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
}

/* 📱 Mobile — imagem cobre 100% da tela */
@media (max-width: 768px) {
    #app_body {
        background-size: cover;   /* cobre toda a tela */
        background-position: center;
    }
}

/* 🖥 Desktop — imagem se ajusta inteira e centraliza */
@media (min-width: 769px) {
    #app_body {
        background-size: contain; /* não corta nada */
        background-position: center;
        background-color: #f5ecd8; /* opcional: cor atrás da imagem */
    }
}

#header {
    display: none!important;
}

.mdl-layout__drawer-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 40px);
    height: calc(100vh - 20px);
    padding: 20px;
    padding-bottom: 0px;
}

.screen-content{
    width: 100%;
}

.categories{
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    overflow: auto;
    margin-top: 20px;
}

.checklist-top-progress{
    height: 60px;
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-direction: column;
}

.miniapp-progress-bar{
    width: 100%;
    height: 30px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.miniapp-progress-text{
    font-size: 14px;    
    height: 30px;
    color: var(--beige);
    font-weight: bold;
    position: absolute;
    width: 85%;
    font-size: 1.2em;
    margin-top: 4px;
    text-align: center;
}

.badge-completed {
    background-color: var(--italygreen);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-align: center;
}

.badge-in-progress {
    background-color: var(--brown);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-align: center;
}

.badge-not-started {
    background-color: var(--red);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    width: fit-content;
}

.button-start{
    background-color: var(--green);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-align: center;
}


.miniapp-name{
    font-weight: bold;
    color: var(--green);
    align-self: center;
    position: absolute;
    text-align: center;
    width: 90%;
    z-index: 998;
}


.miniapp-top{
    display: flex;
    flex-direction: column;
    height: 5vh;
}

.miniapp-top-progress{
    display: flex;
    flex-direction: column;
}

.topbar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.backarrow{
    width: 30px;
    z-index: 999;
}

/* WELCOME MODAL (compartilhado entre miniapps) */
.welcome-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.welcome-modal-content {
    background: var(--white, #fff);
    width: calc(100% - 40px);
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    animation: welcomeFadeIn 0.3s ease-out;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
@keyframes welcomeFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes welcomeFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}
.welcome-modal-content.closing {
    animation: welcomeFadeOut 0.3s ease-out forwards;
}
.welcome-modal-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.welcome-modal-btn {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 15px;
    background: var(--italygreen);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}
.welcome-modal-back {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px;
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}

#push-skip-btn {
    transition: opacity 0.5s ease;
}