
/* Inotum Start Guide - Frontend Styles */
.isg-guide-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483647 !important;
}

.isg-guide-container.active {
    display: block;
}

.isg-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    z-index: 2147483646 !important;
}

.isg-guide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    z-index: 2147483647 !important;
}

.isg-guide-placeholder {
    display: none !important;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.isg-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #64748b;
}

.isg-close-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.isg-slides-container {
    position: relative;
    padding: 60px 40px 40px;
    min-height: 400px;
}

.isg-slide {
    display: none;
    animation: slideContent 0.4s ease;
}

.isg-slide.active {
    display: block;
}

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

.isg-slide-icon {
    font-size: 72px;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
    line-height: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.isg-slide-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.isg-slide-content {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    text-align: center;
    margin-bottom: 40px;
}

.isg-slide-content p {
    margin: 0 0 15px 0;
}

.isg-slide-content strong {
    color: #1e293b;
    font-weight: 600;
}

.isg-slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.isg-slide-dots {
    display: flex;
    gap: 8px;
}

.isg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.isg-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.isg-slide-actions {
    display: flex;
    gap: 12px;
}

.isg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.isg-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.isg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

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

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

.isg-btn-ghost {
    background: transparent;
    color: #94a3b8;
}

.isg-btn-ghost:hover {
    color: #64748b;
}

.isg-trigger-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 999;
}

.isg-trigger-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.isg-trigger-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.isg-trigger-minimal {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.isg-trigger-minimal:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.isg-trigger-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.isg-trigger-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.4);
}

.isg-trigger-icon {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 640px) {
    .isg-guide-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .isg-slides-container {
        padding: 50px 24px 24px;
    }
    
    .isg-slide-title {
        font-size: 24px;
    }
    
    .isg-slide-icon {
        font-size: 48px;
    }
    
    .isg-slide-content {
        font-size: 14px;
    }
    
    .isg-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .isg-slide-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .isg-slide-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-color-scheme: dark) {
    .isg-guide-modal {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .isg-slide-title {
        color: #f1f5f9;
    }
    
    .isg-slide-content {
        color: #cbd5e1;
    }
    
    .isg-slide-content strong {
        color: #f1f5f9;
    }
    
    .isg-btn-secondary {
        background: #334155;
        color: #e2e8f0;
    }
    
    .isg-btn-secondary:hover {
        background: #475569;
    }
    
    .isg-close-btn {
        background: rgba(30, 41, 59, 0.9);
        color: #94a3b8;
    }
}

.fusion-builder-row .isg-guide-container,
.fusion-fullwidth .isg-guide-container {
    z-index: 2147483647 !important;
}

body > .isg-guide-container {
    z-index: 2147483647 !important;
}
