/* Olika Modal System — Compartilhado entre páginas */
.olika-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

.olika-modal .modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.olika-modal .modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    max-width: 28rem !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.olika-modal .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.olika-modal .modal-body {
    padding: 1rem 1.25rem;
}

.olika-modal .modal-body > * + * {
    margin-top: 1rem;
}

.olika-modal .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Animações */
.olika-modal-fade-out {
    animation: olikaFadeOut 0.2s ease-out;
}

@keyframes olikaFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.olika-slide-up {
    animation: olikaSlideUp 0.3s ease-out;
}

@keyframes olikaSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode */
.dark .olika-modal .modal-content {
    background: #111827 !important;
}

.dark .olika-modal .modal-header,
.dark .olika-modal .modal-footer {
    border-color: #374151;
}

.dark .olika-modal .modal-body {
    color: #f3f4f6;
}
