﻿/**
 * Author:  SÃ©rgio Rosa SchÃ¼tz
 * Empresa: Pethos Tecnologia
 * Data e Hora: 14/02/2026 17:39
 * VersÃ£o: 2.3.1 (Build #3)
 * Finalidade: Componente de barra lateral unificada V17 Platinum.
 */

/* 
 * Pethos Notifications & Modals - V17 Premium
 * EstÃ©tica: Glassmorphism, Blur, Soft Shadows
 */

:root {
    --pm-blur: 12px;
    --pm-overlay: rgba(15, 23, 42, 0.4);
}

/* Container de Modais */
.pethos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pm-overlay);
    backdrop-filter: blur(var(--pm-blur));
    -webkit-backdrop-filter: blur(var(--pm-blur));
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card do Modal */
.pethos-modal-card {
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.pethos-modal-overlay.active .pethos-modal-card {
    transform: scale(1) translateY(0);
}

/* Ãcones Reativos */
.pm-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
}

/* Tipos */
.pm-success .pm-icon-box {
    background: #dcfce7;
    color: #16a34a;
}

.pm-error .pm-icon-box {
    background: #fee2e2;
    color: #dc2626;
}

.pm-warning .pm-icon-box {
    background: #fef3c7;
    color: #d97706;
}

.pm-info .pm-icon-box {
    background: #e0f2fe;
    color: #0284c7;
}

/* Texto */
.pm-title {
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.pm-message {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* BotÃµes */
.pm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pm-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.pm-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pm-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.pm-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.pm-btn-secondary:hover {
    background: #e2e8f0;
}

/* Mini Toasts (Feedback RÃ¡pido) */
.pethos-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pethos-toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: toast-in 0.4s ease-out forwards;
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.pethos-toast-icon {
    font-size: 18px;
}

.pethos-toast.success .pethos-toast-icon {
    color: #16a34a;
}

.pethos-toast.error .pethos-toast-icon {
    color: #dc2626;
}

.pethos-toast-text {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
