/* ═══════════════════════════════════════════════════════════════
   DataForesight ENT – Platform Tour Styles
   Works on top of Shepherd.js default theme
═══════════════════════════════════════════════════════════════ */

/* ── Shepherd step card ── */
.df-shepherd-step.shepherd-element {
    max-width: 420px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 78, 212, 0.15) !important;
    border: 1px solid rgba(0, 120, 212, 0.18) !important;
    overflow: hidden !important;
}

.df-shepherd-step .shepherd-content {
    padding: 0 !important;
}

/* Header — use !important to override Shepherd.js v11 defaults */
.df-shepherd-step .shepherd-header {
    background: linear-gradient(135deg, #0b5cff 0%, #0078d4 60%, #39a6ff 100%) !important;
    padding: 14px 18px 12px !important;
    border-radius: 13px 13px 0 0 !important;
    gap: 8px;
}

.df-shepherd-step .shepherd-title {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.3;
    flex: 1;
}

.df-shepherd-step .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.df-shepherd-step .shepherd-cancel-icon:hover {
    color: #fff !important;
}

/* Step number badge */
.tour-step-num {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    margin-right: 4px;
}

/* Body */
.df-shepherd-step .shepherd-text {
    padding: 16px 20px 8px;
    font-size: 0.875rem;
    color: #2d3748;
    line-height: 1.6;
}

.df-shepherd-step .shepherd-text p {
    margin-bottom: 8px;
}

.df-shepherd-step .shepherd-text p:last-child {
    margin-bottom: 0;
}

.df-shepherd-step .shepherd-text strong {
    color: #0b5cff;
}

.df-shepherd-step .shepherd-text kbd {
    font-size: 0.75rem;
    padding: 1px 5px;
    background: #f0f4ff;
    border: 1px solid #c7d5f0;
    border-radius: 4px;
    color: #0b5cff;
}

/* Legend lists */
.tour-legend-list,
.tour-tips-list {
    margin: 8px 0 0;
    padding: 0 0 0 4px;
    list-style: none;
    font-size: 0.84rem;
}

.tour-legend-list li,
.tour-tips-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #374151;
}

.tour-legend-list .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green  { background: #16a34a; }
.dot-amber  { background: #d97706; }
.dot-red    { background: #dc2626; }

/* Footer / buttons */
.df-shepherd-step .shepherd-footer {
    padding: 12px 20px 16px;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f5;
}

.df-shepherd-step .shepherd-button {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
}

/* Primary button */
.df-shepherd-step .shepherd-button:not(.shepherd-button-secondary) {
    background: linear-gradient(135deg, #0b5cff, #0078d4);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 78, 212, 0.25);
}

.df-shepherd-step .shepherd-button:not(.shepherd-button-secondary):hover {
    background: linear-gradient(135deg, #0048d4, #005faa);
    box-shadow: 0 4px 14px rgba(0, 78, 212, 0.35);
    transform: translateY(-1px);
}

/* Secondary button */
.df-shepherd-step .shepherd-button-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.df-shepherd-step .shepherd-button-secondary:hover {
    background: #e5e7eb;
}

/* Arrow */
.df-shepherd-step .shepherd-arrow::before {
    background: #0078d4;
}

/* Modal overlay */
.shepherd-modal-overlay-container {
    opacity: 0.55;
}

/* ── Tour trigger button in the header ── */
.df-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}

.df-tour-btn:hover {
    background: #f0f4ff;
    border-color: #0078d4;
    color: #0078d4;
}

.df-tour-btn i {
    font-size: 0.95rem;
}

/* ── Toast notification ── */
.df-tour-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    z-index: 99999;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    white-space: nowrap;
}

.df-tour-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.df-tour-toast-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ── Animated "pulse" hint on the Tour button (first visit) ── */
@keyframes df-tour-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(0, 120, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); }
}

.df-tour-btn-pulse {
    animation: df-tour-pulse 1.6s ease-in-out 3;
    border-color: #0078d4;
    color: #0078d4;
}
