:root { --accent: #00c4cc; --bg-dark: #0d0d0d; --panel-bg: #1a1a1a; --border: #333; }

body { margin: 0; padding: 0; background-color: var(--bg-dark); font-family: 'Inter', sans-serif; color: #fff; overflow: hidden; }



/* SCROLLBAR */

::-webkit-scrollbar { width: 8px; height: 8px; }

::-webkit-scrollbar-track { background: #222; }

::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; border: 1px solid #222; }



/* HEADER */

header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; background-color: var(--panel-bg); border-bottom: 1px solid var(--border); height: 60px; }

.header-left { display: flex; align-items: center; gap: 20px; }

.brand { font-size: 16px; font-weight: bold; color: #ccc; border-right: 1px solid var(--border); padding-right: 20px; display:flex; align-items:center; gap:10px;}

.file-controls { display: flex; gap: 10px; align-items: center; }

.header-center { display: flex; gap: 20px; align-items: center; }

.header-center .icon-group { display: flex; align-items: center; gap: 5px; border-right: 1px solid var(--border); padding-right: 20px; }

.header-center .icon-group:last-child { border: none; }

.header-right { display: flex; gap: 10px; align-items: center; }



/* Inputs */

.dim-input, .dim-select { background: #2a2a2a; color: #fff; border: 1px solid #444; padding: 5px; border-radius: 4px; width: 60px; text-align: center; height: 32px; box-sizing: border-box; }

#font-selector option { background: #2a2a2a; color: #fff; padding: 5px; }



/* BUTTONS */

.btn {

    background-color: #444; color: #fff; border: none; padding: 0 15px; border-radius: 4px; cursor: pointer;

    font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500;

    height: 32px; text-decoration: none; box-sizing: border-box; margin: 0; white-space: nowrap;

}

label.btn { margin: 0; }

.btn:hover { background-color: #555; }

.btn-primary { background-color: var(--accent); color:#000; font-weight:bold; }

.btn-whatsapp { background-color: #25d366; color:#fff; }

.btn-success { background-color: #28a745; color:#fff; }

.btn-icon { padding: 0 10px; width: auto; }

.btn-danger { background-color:#ff5555; color: #fff; }

.btn-ai { background: linear-gradient(90deg, #ff00de, #ff9100); width: 100%; justify-content: center; margin-top:10px; height: 35px;}

.btn.active { background-color: var(--accent); color: #000; }



/* ARSENAL */

.selection-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.selection-card { background: #2a2a2a; padding: 30px 20px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; display: flex; flex-direction: column; align-items: center; }

.selection-card:hover { border-color: var(--accent); transform: scale(1.05); background: #333; }

.selection-card i { font-size: 50px; color: var(--accent); margin-bottom: 15px; }

.selection-card h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 600; }



/* DRIVE */

.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

.drive-item { background: #111; border: 1px solid #333; padding: 8px; border-radius: 5px; text-align: center; }

.drive-item:hover { border-color: var(--accent); background: #333; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.drive-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }

.drive-item i.fa-folder { font-size: 50px; color: #ffca28; margin: 15px 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.drive-item span { font-size: 11px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: 5px; }



.btn-import-small { background: var(--accent); color: #000; border: none; padding: 6px; border-radius: 3px; cursor: pointer; font-size: 10px; font-weight: bold; width: 100%; margin-top: auto; transition: 0.2s; }

.btn-import-small:hover { background: #fff; }

.search-bar-modal { display: flex; gap: 8px; margin-bottom: 15px; align-items: center; }

.btn-back-modal { background: transparent; border: 1px solid #555; color: #aaa; margin-right: 10px; padding: 0 15px; }

.btn-back-modal:hover { border-color: #fff; color: #fff; }



/* LAYOUT */

.main-container { display: flex; height: calc(100vh - 60px); }

.toolbar { width: 80px; background: var(--panel-bg); display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow-y: auto; }

.tool-btn { padding: 15px 5px; text-align: center; color: #888; cursor: pointer; font-size: 10px; transition: 0.2s; border-left: 3px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }

.tool-btn:hover, .tool-btn.active { background: #252525; color: #fff; }

.tool-btn.active { border-left-color: var(--accent); }

.tool-btn i { font-size: 20px; }

.tool-btn span { line-height: 1.2; }



/* PANELS LEFT */

.panels {

    width: 280px; background: var(--panel-bg); border-right: 1px solid var(--border);

    /* 🔑 CORREÇÃO 1: Permite que o toggle posicionado fora da borda seja visível */

    overflow-y: auto; 

    overflow: visible; 

    padding: 15px; 

    transition: width 0.3s, padding 0.3s, transform 0.3s;

    position: relative;

}

.panels.hidden {

    width: 0;

    padding: 0;

    border-right: none;

    /* 🔑 CORREÇÃO: Garante que o botão seja visível mesmo quando o painel está oculto */

    overflow: visible !important; 

}

.panels.hidden .panel-content { display: none; }

.panel-content { display: none; }

.panel-content.active { display: block; animation: fadeIn 0.3s; }



@keyframes fadeIn { from {opacity:0} to {opacity:1} }



/* WORKSPACE */

.workspace { flex-grow: 1; background-color: #111; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }


.paper-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    transform-origin: 0 0 !important;
    transition: transform 0.1s ease-out;
    overflow: visible;
}





   @media(max-width:768px){

    .workspace {
        position: absolute !important;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 70px;
        width: 100% !important;
        overflow: hidden !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .paper-container {
        position: absolute !important;
        transform-origin: center center !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
        margin: 0 !important;
    }
}




/* RULERS */

.ruler-h { position: absolute; top: -25px; left: 0; width: 100%; height: 25px; background: #222; border-bottom: 1px solid #444; display: none; align-items: flex-end; overflow: hidden; z-index: 100;}

.ruler-v { position: absolute; top: 0; left: -25px; width: 25px; height: 100%; background: #222; border-right: 1px solid #444; display: none; flex-direction: column; align-items: flex-end; overflow: hidden; z-index: 100;}

.ruler-on .ruler-h, .ruler-on .ruler-v { display: flex; }



.tick-h {

    height: 8px;

    border-left: 1px solid #666;

    position: absolute;

    bottom: 0;

    font-size: 8px;

    color:#aaa;

    padding-left: 2px;

    pointer-events: none;

}



.tick-v {

    width: 8px;

    border-top: 1px solid #666;

    position: absolute;

    right: 0;

    font-size: 8px;

    color:#aaa;

    padding-top: 2px;

    writing-mode: vertical-lr;

    pointer-events: none;

}



.grid-on::after {

    content: '';

    position: absolute; top: 0; left: 0; right: 0; bottom: 0;

    background-size: 20px 20px;

    background-image: linear-gradient(to right, #ddd 1px, transparent 1px),

                      linear-gradient(to bottom, #ddd 1px, transparent 1px);

    pointer-events: none; z-index: 50;

}



.brush-cursor {

    position: fixed;

    pointer-events: none;

    border: 1px solid #fff;

    box-shadow: 0 0 4px #000;

    border-radius: 50%;

    z-index: 9999;

    display: none;

    transform: translate(-50%, -50%);

}



.zoom-controls {

    position: absolute;

    bottom: 15px;

    right: 230px;

    background: #222;

    padding: 5px;

    border-radius: 20px;

    display: flex;

    gap: 10px;

    border: 1px solid #444;

    z-index: 101;

}



/* FLOAT BUTTONS */

.floating-confirm {

    position: absolute;

    background: #25d366;

    color: white;

    padding: 10px 25px;

    border-radius: 30px;

    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0,0,0,0.5);

    z-index: 9999;

    display: none;

    font-size: 14px;

    border: 2px solid #fff;

    white-space: nowrap;

}



/* RIGHT SIDEBAR */

.right-sidebar {

    width: 200px;

    background: var(--panel-bg);

    border-left: 1px solid var(--border);

    padding: 15px;

    display: flex;

    flex-direction: column;

    transition: width 0.3s, padding 0.3s, transform 0.3s;

    position: relative;

}



.right-sidebar.hidden {

    width: 0;

    padding: 0;

    border-left: none;



}



.layer-list {

    flex-grow: 1;

    overflow-y: auto;

    margin-top: 10px;

    list-style: none;

    padding: 0;

}



/* --- FIX CAMADAS --- */

.layer-item {

    padding: 8px;

    background: #2a2a2a;

    margin-bottom: 4px;

    border-radius: 4px;

    font-size: 11px;

    display: flex;

    align-items: center;

    gap: 5px;

    cursor: grab;

    border-left: 3px solid transparent;

    transition: all 0.2s;

}



/* highlight layer */

.layer-item.active {

    border-left-color: var(--accent);

    background: #333;

    box-shadow: 0 0 10px rgba(0, 196, 204, 0.2);

    color: #fff;

}



.layer-name {

    flex-grow: 1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-left: 5px;

}



.layer-actions {

    display: flex;

    gap: 2px;

}



.layer-btn {

    cursor: pointer;

    padding: 4px;

    color: #666;

    transition: 0.2s;

    font-size: 10px;

}



.layer-btn:hover { color: #fff; }



/* PANELS TOGGLES */

.panel-toggle-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: var(--panel-bg);

    border: 1px solid var(--border);

    color: var(--accent);

    /* Ajustei padding para caber na nova configuração */

    padding: 6px 8px; 

    cursor: pointer;

    z-index: 100;

    border-radius: 0 4px 4px 0;

    transition: opacity 0.3s;

    opacity: 0.8;

    height: 40px;

    display: flex;

    align-items: center;

}







/* Right */

#toggle-right-panel {

    position: absolute;

    left: -22px;

    top: 50%;

    transform: translateY(-50%);

}



.right-sidebar.hidden #toggle-right-panel {

    left: -22px;

}



.right-sidebar.hidden {

    width: 0;

    padding: 0;

    border-left: none;

}





/* MODALS */

.modal-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.8);

    z-index: 10000;

    display: none;

    justify-content: center;

    align-items: center;

}



.modal-box {

    background: #222;

    padding: 20px;

    border-radius: 8px;

    width: 300px;

    text-align: center;

    border: 1px solid var(--accent);

    max-height: 80vh;

    overflow-y: visible;

}



#loading-overlay {

    flex-direction: column;

    gap: 15px;

    font-size: 14px;

    font-weight: bold;

    color: #fff;

}





.save-badge {

    position: absolute;

    top: 10px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(0,0,0,0.5);

    padding: 2px 8px;

    border-radius: 4px;

    font-size: 10px;

    opacity: 0;

    transition: opacity 0.5s;

    pointer-events: none;

    z-index: 200;

}



/* Fonts modal */

.font-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 15px;

}



.font-item {

    background: #333;

    padding: 8px;

    text-align: center;

    cursor: pointer;

    border-radius: 4px;

    border: 1px solid #444;

    color: #fff;

    font-size: 16px;

    white-space: nowrap;

    overflow: hidden;

}



.font-item:hover {

    border-color: var(--accent);

    background: #444;

}



/* DRAW TOOLS */

.draw-tools-container {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

    background: #222;

    padding: 8px;

    border-radius: 8px;

    border: 1px solid #333;

}



.draw-tool-btn {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 10px 5px;

    font-size: 11px;

    gap: 5px;

    background: transparent;

    border: 1px solid transparent;

    color: #aaa;

    transition: all 0.2s;

}



.draw-tool-btn i { font-size: 12px; margin-bottom: 2px; }

.draw-tool-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

.draw-tool-btn:hover:not(.active) { background: #333; border-color: #444; color: #fff; }



.tool-instructions {

    background: rgba(0, 196, 204, 0.1);

    border: 1px solid var(--accent);

    padding: 10px;

    border-radius: 8px;

    margin-bottom: 15px;

    font-size: 11px;

    color: #ccc;

    display: none;

}

/* NOVOS ESTILOS PARA GRUPOS DE CONTROLE */

.control-group {

    margin-bottom: 15px;

    padding-bottom: 15px;

    border-bottom: 1px solid #2a2a2a;

}

.control-group label {

    display: block;

    font-size: 13px;

    font-weight: bold;

    color: #ccc;

    margin-bottom: 5px;

}

.slider-and-value {

    display: flex;

    align-items: center;

    gap: 10px;

}

.slider-and-value input[type="range"] {

    flex-grow: 1;

}

.slider-and-value span {

    width: 40px;

    text-align: center;

    font-size: 14px;

    color: var(--accent);

}



/* MOBILE */

@media (max-width: 768px) {



    body {

        overflow: hidden;

        position: fixed;

        width: 100%;

        height: 100%;

    }



    .main-container {

        flex-direction: column;

        height: calc(100% - 50px);

    }



    header {

        height: 50px;

        padding: 0 10px;

    }



    .brand { font-size: 0; }

    .brand i { font-size: 20px; display: block; }



    .header-center { display: none; }

    .header-right .btn { padding: 0 8px; font-size: 10px; }

    .file-controls span { display:none; }


    .toolbar {

        order: 3;

        width: 100%;

        height: 70px;

        flex-direction: row;

        border-right: none;

        border-top: 1px solid #333;

        overflow-x: auto;

        white-space: nowrap;

        background: #000;

        justify-content: flex-start;
        /* 🛠️ CORREÇÃO 1: Adicionar posição e z-index alto para ficar por cima */
   
    bottom: 0; 
    z-index: 10;
    position: fixed;

    }



    .tool-btn { min-width: 65px; padding: 10px 5px; }



    .panels {

        order: 2;

        width: 100%;

        height: 40%;

        border-right: none;

        border-top: 1px solid var(--accent);

        z-index: 20;

    }





    .right-sidebar { display: none; }



    input[type="range"] { height: 15px; }

    .btn { height: 40px; font-size: 13px; }



    .sticker-grid { grid-template-columns: repeat(6, 1fr); }



    .modal-box { width: 90%; max-height: 85vh; }



    /* Esconde os toggles laterais no mobile */

    .panel-toggle-btn { display: none; }

}
/* RESTAURAção DO PADDING */


/* GRID DE MODELOS DE TEXTO */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 10px;
}

/* GRID DE STICKERS */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.sticker-item {
    background: #111;
    padding: 12px;
    border-radius: 7px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}
.sticker-item:hover {
    background: #222;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ITENS DO MODELO DE TEXTO */
.template-grid div {
    padding: 6px 10px;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}
#panel-stickers input[type="text"] {
    width: 80%;
    padding: 10px 12px;
    font-size: 14px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
}

/* ======== TÍTULO ======== */
#panel-stickers h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* ======== RESTAURAR BLOCO IA ANTIGO ======== */

#panel-stickers .prop-group {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-top: 20px;
}

#panel-stickers .prop-group label {
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
}

/* Botão IA */
#panel-stickers .btn-ai {
    margin-top: 10px;
    height: 45px;
    font-size: 16px;
    border-radius: 8px;
}

/* Campo prompt IA */
#sticker-prompt {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    width: 80%;
    margin-top: 5px;
}
/* ====== Filtros (Presets) — Estilo Bonito ====== */

#props-image .filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

#props-image .filter-btn {
    background: #222;
    border: 1px solid #444;
    padding: 8px 0;
    border-radius: 6px;
    color: #eee;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

#props-image .filter-btn:hover {
    background: #2c2c2c;
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

#props-image #filter-intensity-control {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}
/* ================================
   TOGGLE ESQUERDO – DESKTOP
================================ */

#toggle-left-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -20px;
    z-index: 9;
    transition: right .28s ease;
}

/* painel aberto (desktop) */
#left-panel.open {
    bottom: 70px;
}

/* botão cola na tela quando fecha */
#left-panel.hidden #toggle-left-panel,
.panels.hidden #toggle-left-panel {
    right: auto;
    left: 0;
}

/* ================================
   TOGGLE ESQUERDO – DESKTOP
================================ */
#toggle-left-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -20px;
    z-index: 9;
    transition: right .28s ease;
}

/* Quando o painel fecha */
.panels.hidden #toggle-left-panel,
#left-panel.hidden #toggle-left-panel {
    right: auto;
    left: 0;
}

/* ================================
   MOBILE
================================ */
@media(max-width: 768px){

    /* Menu inferior */
    .toolbar {
        position: fixed;
        bottom: 0;
        height: 70px;
        z-index: 10;
    }

    /* Painel vira painel inferior */
    #left-panel {
        position: fixed !important;
        width: 100% !important;
        height: 260px !important;
        bottom: -260px;   /* fechado */
        left: 0;
        top: auto;
        background: #111;
        overflow-y: auto !important;
        z-index: 9 !important; /* atrás do menu */
        transition: bottom .28s ease;
    }

    /* Painel aberto */
    #left-panel.open {
        bottom: 70px; /* encosta no menu */
    }

    /* Esconde o botão desktop */
    #toggle-left-panel {
        display: none !important;
    }

    /* Botão mobile discreto no canto direito */
  @media(max-width:768px){

    /* remove qualquer posição fixa antiga */
    #mobile-left-toggle {
        position: absolute !important;
        right: 10px;
        bottom: -50px; /* posição quando painel está fechado */
        z-index: 9999;
        background: #00c4cc;
        color: #000;
        padding: 7px 14px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: bold;
        border: 1px solid #0ff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    }

    /* botão sobe JUNTO com o painel */
    #left-panel.open #mobile-left-toggle {
        bottom: calc(260px + 10px); /* sobe junto perfeito */
    }
}

/* ====== CENTRALIZAÇÃO GLOBAL DO PAPER ====== */
/* ====== CENTRALIZAÇÃO CORRETA (CSS + JS) ====== */
#paper {
    position: absolute !important;
    left: 0;
    top: 0;
}
@media (max-width: 800px) {
    .zoom-controls {
        display: none !important;
    }
}
/* ============================
   MOBILE TOP BAR + BOTÕES
============================ */
@media (max-width: 800px) {

    /* Remove ícone */
    .brand i {
        display: none !important;
       
    }

    /* Nome bem pequeno */
    .brand {
        font-size: 0px !important;
        line-height: 11px !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    /* Remove SALVAR */
    .header-right button:nth-child(1) {
        display: none !important;
    }

    /* Botões compactos */
    .header-left .btn,
    .header-center .btn,
    .header-right .btn,
    .btn-icon,
    header .btn,
    header .btn-icon {
        padding: 2px 4px !important;
        font-size: 9px !important;
        height: 22px !important;
        min-width: auto !important;
        border-radius: 4px !important;
    }

    /* Inputs menores */
    .header-center .icon-group input,
    .header-center .icon-group select {
        height: 22px !important;
        font-size: 9px !important;
        padding: 1px !important;
    }

    /* Gaps menores */
    .header-left,
    .header-center,
    .header-right,
    .header-left .file-controls {
        gap: 3px !important;
    }

    header {
        padding: 1px 2px !important;
    }
}

/* ============================
   MOBILE — PAINEL 100% CENTRALIZADO
============================ */
@media (max-width: 800px) {

    /* Nada de overflow */
    body, html {
        overflow-x: hidden !important;
    }

    #left-panel {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;

        border-radius: 0 !important;
        overflow-x: hidden !important;
    }

    /* Centraliza interior */
    #left-panel .panel-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Garante que nada estoure */
    #left-panel * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        white-space: normal !important;
    }

    /* Botão Ocultar/Mostrar */
    #mobile-left-toggle {
        right: 20px !important;
        left: auto !important;
    }
}@media (max-width: 800px) {

    /* Move todo o painel levemente para a esquerda */
    #left-panel {
        transform: translateX(-10px) !important;
        width: calc(100% + 10px) !important; /* para não cortar a borda direita */
    }

    /* Move também o conteúdo interno para não ficar colado demais */
    #left-panel .panel-content {
        padding-left: 5px !important;
        padding-right: 20px !important;
    }
}


.projetos-lista .proj-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.proj-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.proj-item .proj-info {
    flex: 1;
    font-size: 13px;
}

.proj-item button {
    font-size: 11px;
    padding: 4px 6px;
    cursor: pointer;
}

.btn-fechar {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}



<style>
    /* FORÇAR O MODAL A APARECER ACIMA DE TUDO */
    #modal-projetos.dinka-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        z-index: 999999999 !important; /* Z-Index extremo */
        display: none; 
        justify-content: center;
        align-items: center;
    }

    /* Quando o JS ativar o flex, isso garante que funcione */
    #modal-projetos[style*="display: flex"] {
        display: flex !important;
    }

    .dinka-modal-content {
        background: #1a1a1a !important;
        border: 2px solid #00c4cc !important;
        padding: 20px !important;
        z-index: 9999999999 !important;
        width: 450px;
        max-width: 95%;
        border-radius: 10px;
        position: relative;
        color: white;
    }
    
    
 /* Container principal do modal */
#projetos-content {
    max-height: 80vh !important;
    overflow-y: visible !important;
}

/* Apenas a lista interna */
#projetos-lista {
    max-height: 70vh !important;
    overflow-y: visible !important;
    padding-right: 10px;
}

.projeto-card {
    display: grid;
    grid-template-columns: 70px 1fr 110px;
    gap: 10px;
    align-items: center;
    width: 100%;
}


.projeto-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (max-width: 800px) {
    #btn-cart {
        padding: 4px 8px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
    }

    #btn-cart i {
        font-size: 10px !important;
        margin-right: 2px !important;
    }
}

</style>