/* ktech-mf-pwa.css */
/* [1] Container do menu flutuante */
.ktech-mf-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* [2] Botões circulares */
.ktech-mf-btn {
    background: #003366;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.ktech-mf-btn:hover {
    background: #004488;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.ktech-mf-btn:active {
    transform: scale(0.98);
}

.ktech-mf-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* [3] Ícones */
.ktech-mf-icon {
    width: 28px;
    height: 28px;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.ktech-mf-btn:hover .ktech-mf-icon {
    transform: scale(1.1);
}

.ktech-mf-main img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.ktech-mf-main:hover img {
    transform: rotate(90deg);
}

/* [4] Lista de ações */
.ktech-mf-actions {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    animation: fadeInUp 0.3s ease;
}

.ktech-mf-actions.ktech-active {
    display: flex;
}

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

/* [5] Toast não-invasivo */
.ktech-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #003366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ktech-toast.ktech-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ktech-toast a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* [6] Efeito de onda nos botões */
.ktech-mf-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ktech-mf-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* [7] Responsividade */
@media (max-width: 768px) {
    .ktech-mf-wrap {
        bottom: 15px;
        right: 15px;
    }
    
    .ktech-toast {
        bottom: 80px;
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .ktech-mf-wrap {
        bottom: 10px;
        right: 10px;
    }
    
    .ktech-mf-btn {
        width: 56px;
        height: 56px;
        margin: 6px 0;
    }
    
    .ktech-mf-icon {
        width: 26px;
        height: 26px;
    }
    
    .ktech-mf-main img {
        width: 56px;
        height: 56px;
    }
    
    .ktech-toast {
        bottom: 70px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

/* [8] Ajuste para quando estiver em modo PWA */
@media (display-mode: standalone) {
    .ktech-mf-wrap {
        bottom: env(safe-area-inset-bottom, 20px);
        right: env(safe-area-inset-right, 20px);
    }
}