/* ===== SISTEMA DE NOTIFICAÇÕES VALDIR MÓVEIS ===== */

/* Overlay do modal */
.vm-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.vm-notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Container principal do modal */
.vm-notification-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid #e5e7eb;
}

.vm-notification-overlay.show .vm-notification-modal {
    transform: scale(1) translateY(0);
}

/* Tamanhos de modal */
.vm-notification-modal.size-sm {
    width: 400px;
}

.vm-notification-modal.size-md {
    width: 500px;
}

.vm-notification-modal.size-lg {
    width: 700px;
}

.vm-notification-modal.size-xl {
    width: 900px;
}

/* Responsividade */
@media (max-width: 768px) {
    .vm-notification-modal {
        width: 95vw !important;
        margin: 1rem;
    }
}

/* Header do modal */
.vm-notification-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.vm-notification-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vm-notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ícones por tipo de notificação */
.vm-notification-icon.type-welcome {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.vm-notification-icon.type-promotion {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.vm-notification-icon.type-announcement {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.vm-notification-icon.type-warning {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.vm-notification-icon.type-info {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.vm-notification-icon.type-newsletter {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.vm-notification-icon.type-update {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

/* Botão de fechar */
.vm-notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vm-notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Corpo do modal */
.vm-notification-body {
    padding: 0 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.vm-notification-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.vm-notification-message {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: inherit;
}

.vm-notification-message p {
    margin: 0 0 1rem 0;
}

.vm-notification-message p:last-child {
    margin-bottom: 0;
}

/* Footer com botões */
.vm-notification-footer {
    padding: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid #f3f4f6;
    margin-top: 1.5rem;
}

.vm-notification-footer.center {
    justify-content: center;
}

.vm-notification-footer.left {
    justify-content: flex-start;
}

/* Botões */
.vm-notification-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.vm-notification-btn-primary {
    background: #fdc300;
    color: #1f2937;
}

.vm-notification-btn-primary:hover {
    background: #f1b700;
    transform: translateY(-1px);
}

.vm-notification-btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.vm-notification-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Responsividade para botões em mobile */
@media (max-width: 480px) {
    .vm-notification-footer {
        flex-direction: column;
    }

    .vm-notification-btn {
        width: 100%;
    }
}

/* Animações de entrada por tipo */
.vm-notification-modal.animate-bounce {
    animation: vmNotificationBounce 0.6s ease;
}

.vm-notification-modal.animate-slide {
    animation: vmNotificationSlide 0.4s ease;
}

.vm-notification-modal.animate-fade {
    animation: vmNotificationFade 0.3s ease;
}

@keyframes vmNotificationBounce {
    0% {
        transform: scale(0.3) translateY(100px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes vmNotificationSlide {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes vmNotificationFade {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Preview/Test indicators */
.vm-notification-preview-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #8b5cf6;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0 10px 0 10px;
    font-weight: 600;
    z-index: 1;
}

.vm-notification-test-indicator {
    background: #f59e0b;
}

/* Auto-close progress bar */
.vm-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(252, 211, 77, 0.8);
    transition: width linear;
    border-radius: 0 0 10px 10px;
}

/* Estados especiais */
.vm-notification-modal.closing {
    animation: vmNotificationFadeOut 0.2s ease forwards;
}

@keyframes vmNotificationFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Acessibilidade */
.vm-notification-modal:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .vm-notification-modal {
        border: 3px solid #000;
    }

    .vm-notification-btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vm-notification-overlay,
    .vm-notification-modal,
    .vm-notification-btn {
        transition: none;
    }

    .vm-notification-modal.animate-bounce,
    .vm-notification-modal.animate-slide,
    .vm-notification-modal.animate-fade {
        animation: none;
    }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .vm-notification-modal {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .vm-notification-header {
        border-color: #374151;
    }

    .vm-notification-footer {
        border-color: #374151;
    }

    .vm-notification-close {
        color: #9ca3af;
    }

    .vm-notification-close:hover {
        background: #374151;
        color: #f3f4f6;
    }

    .vm-notification-btn-secondary {
        border-color: #4b5563;
        color: #d1d5db;
    }

    .vm-notification-btn-secondary:hover {
        background: #374151;
        border-color: #6b7280;
        color: #f3f4f6;
    }
}