/* Custom Shepherd.js styling to match NTS CRM theme */

/* Main container styling */
.shepherd-element {
    max-width: 400px;
    z-index: 9999;
}

/* Force the entire element to have the gradient background */
.shepherd-theme-custom,
.shepherd-theme-custom.shepherd-element {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    border: none !important;
    padding: 0;
    overflow: hidden;
}

.shepherd-theme-custom .shepherd-content {
    padding: 0;
    background: transparent !important;
}

/* Header - transparent to show gradient through */
.shepherd-theme-custom .shepherd-header {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.shepherd-theme-custom .shepherd-title {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    background: transparent !important;
}

/* Cancel/Close button */
.shepherd-theme-custom .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.5rem;
    font-weight: 300;
    transition: color 0.2s ease;
    background: transparent !important;
    border: none !important;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: white !important;
}

/* Text content area */
.shepherd-theme-custom .shepherd-text {
    color: white !important;
    font-size: 1rem;
    line-height: 1.7;
    padding: 20px;
    background: transparent !important;
}

.shepherd-theme-custom .shepherd-text p {
    margin: 0 0 12px 0;
    color: white !important;
}

.shepherd-theme-custom .shepherd-text p:last-child {
    margin-bottom: 0;
}

/* Footer with buttons */
.shepherd-theme-custom .shepherd-footer {
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Primary button (Next, Complete, Let's Go) */
.shepherd-theme-custom .shepherd-button,
.shepherd-theme-custom button.shepherd-button {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none !important;
}

.shepherd-theme-custom .shepherd-button-primary,
.shepherd-theme-custom button.shepherd-button-primary,
.shepherd-theme-custom .shepherd-button:not(.shepherd-button-secondary) {
    background: white !important;
    color: #764ba2 !important;
}

.shepherd-theme-custom .shepherd-button-primary:hover,
.shepherd-theme-custom button.shepherd-button-primary:hover,
.shepherd-theme-custom .shepherd-button:not(.shepherd-button-secondary):hover {
    background: #f5f5f5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Secondary button (Back, Skip) */
.shepherd-theme-custom .shepherd-button-secondary,
.shepherd-theme-custom button.shepherd-button-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.shepherd-theme-custom .shepherd-button-secondary:hover,
.shepherd-theme-custom button.shepherd-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Arrow styling - match the gradient */
.shepherd-theme-custom .shepherd-arrow,
.shepherd-theme-custom .shepherd-arrow::before {
    background: transparent !important;
    border: none !important;
}

.shepherd-theme-custom[data-popper-placement^='top'] > .shepherd-arrow::before,
.shepherd-theme-custom[data-popper-placement^='bottom'] > .shepherd-arrow::before,
.shepherd-theme-custom[data-popper-placement^='left'] > .shepherd-arrow::before,
.shepherd-theme-custom[data-popper-placement^='right'] > .shepherd-arrow::before {
    background: #764ba2 !important;
    border: none !important;
}

/* Modal overlay - darker for better focus */
.shepherd-modal-overlay-container {
    fill: rgba(0, 0, 0, 0.65) !important;
}

/* Highlight effect for target elements */
.shepherd-highlight {
    position: relative;
    z-index: 9998;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5),
                0 0 20px rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    animation: shepherd-pulse 2s infinite;
}

@keyframes shepherd-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5),
                    0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3),
                    0 0 30px rgba(102, 126, 234, 0.4);
    }
}

/* Target element highlight */
.shepherd-target {
    position: relative;
    z-index: 9998;
}

.shepherd-target.shepherd-enabled {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .shepherd-element {
        max-width: calc(100vw - 32px);
        margin: 0 16px;
    }

    .shepherd-theme-custom .shepherd-header {
        padding: 14px 16px 10px;
    }

    .shepherd-theme-custom .shepherd-text {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .shepherd-theme-custom .shepherd-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .shepherd-theme-custom .shepherd-button {
        padding: 10px 18px !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================= */
/* Alternative theme - Light                 */
/* ========================================= */

.shepherd-theme-light,
.shepherd-theme-light.shepherd-element {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb !important;
}

.shepherd-theme-light .shepherd-content {
    padding: 0;
    background: white !important;
}

.shepherd-theme-light .shepherd-header {
    background: #f9fafb !important;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.shepherd-theme-light .shepherd-title {
    color: #1f2937 !important;
    font-size: 1.2rem;
    font-weight: 600;
}

.shepherd-theme-light .shepherd-cancel-icon {
    color: #6b7280 !important;
    background: transparent !important;
    border: none !important;
}

.shepherd-theme-light .shepherd-cancel-icon:hover {
    color: #1f2937 !important;
}

.shepherd-theme-light .shepherd-text {
    color: #4b5563 !important;
    padding: 20px;
    background: white !important;
}

.shepherd-theme-light .shepherd-text p {
    color: #4b5563 !important;
}

.shepherd-theme-light .shepherd-footer {
    background: #f9fafb !important;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.shepherd-theme-light .shepherd-button-primary,
.shepherd-theme-light button.shepherd-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.shepherd-theme-light .shepherd-button-secondary,
.shepherd-theme-light button.shepherd-button-secondary {
    background: white !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
}

.shepherd-theme-light .shepherd-button-secondary:hover {
    background: #f3f4f6 !important;
}
