/* Custom Styles for Lucrative Funnel Builder */
body { 
    background-color: #f3f4f6; /* gray-100 */ 
}

/* Funnel connector pseudo-elements */
.funnel-segment { 
    transition: all 0.3s ease; 
}
.funnel-segment:not(:last-child)::after {
    content: ''; 
    display: block; 
    width: 0; 
    height: 0;
    border-left: 50px solid transparent; 
    border-right: 50px solid transparent;
    margin: -1px auto 0; 
    transition: all 0.3s ease;
}

/* Funnel Colors */
.funnel-blue::after { border-top: 40px solid #dbeafe; } /* bg-blue-100 */
.funnel-indigo::after { border-top: 40px solid #e0e7ff; } /* bg-indigo-100 */
.funnel-green::after { border-top: 40px solid #d1fae5; } /* bg-green-100 */
.funnel-purple::after { border-top: 40px solid #f3e8ff; } /* bg-purple-100 */
.funnel-orange::after { border-top: 40px solid #ffedd5; } /* bg-orange-100 */

/* Smart Suggestion Visual */
.suggested-item { 
    animation: pulse 2s infinite; 
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 
}

/* Modal Tab Styles */
.tab-button.active { 
    border-bottom-color: #3b82f6; 
    color: #3b82f6; 
}
.tab-panel { 
    display: none; 
}
.tab-panel.active { 
    display: block; 
}

/* Modal Form Field Styling */
.form-field {
    display: block; 
    width: 100%; 
    padding: 0.65rem; 
    border-radius: 0.5rem; 
    background-color: #f9fafb; 
    border: 1px solid #d1d5db;
}
.form-field:focus {
    background-color: #ffffff; 
    border-color: #3b82f6;
    --tw-ring-color: #3b82f6;
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

/* NEW: Point of Sale Sophisticated Marker */
.point-of-sale-marker {
    position: relative;
    text-align: center;
    margin: 2.5rem auto; /* More vertical space */
}
.point-of-sale-marker hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, 
        rgba(243, 244, 246, 0),  /* transparent gray-100 */
        rgba(22, 163, 74, 0.3),  /* green-500 at 30% opacity */
        rgba(243, 244, 246, 0)   /* transparent gray-100 */
    ); 
    margin: 0;
}
.point-of-sale-marker span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff; /* White background for the text bubble */
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* subtle shadow */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #059669; /* green-600 */
    border: 1px solid #bbf7d0; /* light green border */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}


/* NEW: Foundation Base Styling */
#foundation-base {
    background-color: transparent; 
    border: 2px dashed #9ca3af; 
    border-bottom-left-radius: 1rem; 
    border-bottom-right-radius: 1rem; 
    border-top-left-radius: 0.5rem; 
    border-top-right-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* subtle shadow */
    padding: 1.5rem; 
    margin-top: 2.5rem; /* mt-10, more space */
}
/* Internal foundation blocks */
#foundation-base .droppable-stage {
    background-color: #f9fafb !important; /* light gray for internal blocks */
    border-color: #d1d5db !important; /* gray-300 border */
    box-shadow: none !important; 
}


/* Print Styles */
@media print {
    body { background: #fff; }
    #action-bar, #strategic-context, #funnel-dashboard, .point-of-sale-marker {
        display: none !important;
    }
    main { width: 100% !important; margin: 0; padding: 0; }
    .droppable-stage {
        background: #ffffff !important; box-shadow: none !important;
        border: 1px solid #ccc !important; page-break-inside: avoid;
    }
    .element-palette, .item-controls { display: none; }
    .funnel-segment::after { border-top-color: #eee !important; }
    .dropped-item { box-shadow: none !important; border: 1px solid #eee !important; page-break-inside: avoid; }
    #foundation-base {
        border: 2px solid #ccc !important; 
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 !important; 
    }
    #foundation-base .droppable-stage {
        background-color: #fff !important;
        border-color: #ccc !important;
    }
}