/* PWA Isolated Styles - Namespace: pwa-isolated */
/* Evita conflitos com outros estilos da página */

.pwa-isolated-modal-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.pwa-isolated-modal-overlay.pwa-isolated-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pwa-isolated-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a2e 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0;
    max-width: 320px;
    width: auto;
    max-height: none;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateX(100%) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.pwa-isolated-modal-overlay.pwa-isolated-show .pwa-isolated-container {
    transform: translateX(0) scale(1);
}

.pwa-isolated-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    background: rgba(0, 255, 255, 0.05);
}

.pwa-isolated-icon {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pwa-isolated-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.3),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
}


.pwa-isolated-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwa-isolated-close:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.pwa-isolated-content {
    padding: 15px 20px 10px;
    text-align: center;
}


.pwa-isolated-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}


.pwa-isolated-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.02);
}

.pwa-isolated-btn-primary,
.pwa-isolated-btn-secondary {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: none;
    letter-spacing: 0.2px;
}

.pwa-isolated-btn-primary {
    background: #ffffff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.pwa-isolated-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-isolated-btn-primary:active {
    transform: translateY(0);
}

.pwa-isolated-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-isolated-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pwa-isolated-container {
        max-width: 280px;
    }
    
    .pwa-isolated-header,
    .pwa-isolated-content,
    .pwa-isolated-actions {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .pwa-isolated-description {
        font-size: 12px;
    }
    
    .pwa-isolated-btn-primary,
    .pwa-isolated-btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
    }
}