body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    overflow: hidden;
}

header {
    padding: 0.75rem;
    text-align: center;
    background-color: #fff;
    color: #495057;
    font-size: 1rem;
    font-weight: 400;
    border-top: 1px solid #dee2e6;

}

.navbar.paleta-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    border-radius: 10px;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 997;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.6) !important;
    /* Força a cor de fundo */
    backdrop-filter: blur(10px) !important;
    /* Força o efeito de blur */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.062)
}

.container-paleta {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Altura ajustada */
    padding-top: 90px;
}

.paleta {
    position: relative;
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
}

.color-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    position: relative;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

/* Custom Pickr styles */
.custom-pickr .pcr-app {
    max-width: 200px;
    /* Make the picker narrower */
}

#generate-btn-mobile {
    display: none;
    /* Hidden by default */
}


.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Increased gap */
    align-items: center;
    margin-bottom: 5rem;
    /* Increased space */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.color-column:hover .controls {
    opacity: 1;
}


.control-btn {
    background: none;
    border: none;
    color: inherit;
    /* Inherit color from parent */
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.drag-handle {
    cursor: move;
}

.sortable-fallback {
    display: none !important;
}

.color-hex {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: transparent;
    padding: 0;
}

@media (max-width: 768px) {
    .navbar.paleta-nav {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        border-radius: 0px;
        padding: 10px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 997;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.6) !important;
        /* Força a cor de fundo */
        backdrop-filter: blur(10px) !important;
        /* Força o efeito de blur */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.062)
    }

    .container-paleta {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        /* Altura ajustada */
        padding-top: 65px;
    }

    header p {
        display: none;
        /* Hide spacebar text on mobile */
    }

    #generate-btn-mobile {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #2e2e2e;
        color: white;
        border: none;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        z-index: 1000;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .paleta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 25vh;
        /* Set a consistent row height */
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    .color-column {
        height: auto;
        /* Let the grid control the height */
    }

    .color-column:last-child {
        grid-column: span 2;
        /* Make the last item span two columns */
    }

    .controls {
        gap: 1rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
    }

    .color-hex {
        font-size: 1.5rem;
    }
}