:root {
    /* Paleta harmonizada com o logo (tons de verde azulado) */
    --primary-color: #005b5c;      /* verde escuro do logo */
    --secondary-color: #00a6a8;    /* variante mais clara */
    --bg-color: #f2feff;           /* fundo bem suave */
}

body {
    font-family: 'Roboto', Tahoma, sans-serif;
    background-color: var(--bg-color);
}

.btn-primary,
.btn-secondary,
.btn-success {
    /* Botões padronizados utilizando a mesma cor de fundo */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus {
    /* Tom ligeiramente mais escuro no hover/focus */
    background-color: #002828;
    border-color: #002828;
}
.fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.show.fade {
    opacity: 1;
}
#preview,
#result-image,
#result-original {
    max-width: 100%;
}
#result-section {
    margin-top: 1rem;
}
#result-text {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: hidden;
}
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

#highlight-spinner {
    display: none;
}

#result-image-wrapper {
    min-height: 150px;
}

#history-list ul {
    list-style-type: none;
    padding-left: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-item:nth-child(odd) {
    background-color: #f8f9fa;
}

.history-item:nth-child(even) {
    background-color: #e9ecef;
}

#history-images img {
    max-width: 100%;
}

#post-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

#post-actions .btn {
    min-width: 150px;
}

.collapse-toggle i {
    margin-right: 0.25rem;
}

@media screen and (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    #post-actions .btn {
        width: auto;
        min-width: 120px;
    }
}

/* Ajuste responsivo do logo */
.site-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
}
