/*
    ARQUIVO: update.css
    DESCRIÇÃO: Estilos para o sistema de notificação de atualização.
    DESIGN: Glassmorphism (vidro fosco) seguindo o padrão do projeto Suite.
    VERSÃO: 2.2.0 - Integração Total com Banco de Dados Local
*/

.update-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.update-overlay.active {
    opacity: 1;
    visibility: visible;
}

.update-modal {
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    padding: 24px;
    color: var(--text-primary, #fff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.update-overlay.active .update-modal {
    transform: translateY(0);
}

.update-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.update-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.update-version {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.8);
}

.update-content {
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

/* Estilização do Markdown dentro do modal */
.update-content h3 {
    font-size: 16px;
    margin-top: 0;
    color: var(--text-primary, #fff);
}

.update-content ul {
    padding-left: 20px;
    margin: 12px 0;
}

.update-content li {
    margin-bottom: 8px;
}

.update-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.update-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.update-btn-primary {
    background: var(--text-primary, #fff);
    color: var(--bg-dark, #000);
}

.update-btn-primary:hover {
    background: #eeeeee;
}

.update-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.update-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ajustes para Modo Claro */
body:not(.dark-mode) .update-modal {
    background: rgba(255, 255, 255, 0.8);
    color: var(--bg-dark, #000);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .update-content h3 {
    color: var(--bg-dark, #000);
}

body:not(.dark-mode) .update-btn-primary {
    background: var(--bg-dark, #000);
    color: var(--text-primary, #fff);
}

body:not(.dark-mode) .update-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bg-dark, #000);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Scrollbar personalizada */
.update-content::-webkit-scrollbar {
    width: 4px;
}

.update-content::-webkit-scrollbar-track {
    background: transparent;
}

.update-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
