/* Explain Propensity Floating Button */
.explain-propensity-floating-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explain-propensity-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.explain-propensity-floating-btn:active {
    transform: translateY(0);
}

.explain-propensity-floating-btn i {
    font-size: 16px;
}

/* Propensity Modal Styling */
#propensity-modal .modal-dialog {
    max-width: 900px;
}

#propensity-modal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: 3px solid #0056b3;
}

#propensity-modal .modal-title {
    font-weight: 700;
    font-size: 24px;
}

#propensity-modal .modal-body {
    padding: 30px;
    font-size: 15px;
    line-height: 1.7;
}

#propensity-modal .modal-body h4 {
    color: #0056b3;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

#propensity-modal .modal-body h4:first-child {
    margin-top: 0;
}

#propensity-modal .modal-body p {
    margin-bottom: 15px;
    color: #333;
}

#propensity-modal .modal-body strong {
    color: #0056b3;
}

/* Propensity Factors Table */
.propensity-factors-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.propensity-factors-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.propensity-factors-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.propensity-factors-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.propensity-factors-table tbody tr:hover {
    background-color: #f8f9fa;
}

.propensity-factors-table tbody tr:last-child td {
    border-bottom: none;
}

.factor-name {
    font-weight: 600;
    color: #333;
}

.factor-weight {
    color: #007bff;
    font-weight: 700;
}

.factor-description {
    color: #666;
    font-size: 14px;
}

/* Alert Boxes */
.propensity-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.propensity-alert-info {
    background-color: #e7f3ff;
    border-left-color: #007bff;
    color: #004085;
}

.propensity-alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.propensity-alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.propensity-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Key Insights List */
.key-insights-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.key-insights-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.key-insights-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .explain-propensity-floating-btn {
        padding: 10px 15px;
        font-size: 12px;
        top: 10px;
        left: 10px;
    }
    
    #propensity-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    #propensity-modal .modal-body {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .propensity-factors-table {
        font-size: 13px;
    }
    
    .propensity-factors-table th,
    .propensity-factors-table td {
        padding: 10px 8px;
    }
}
