/* ---------------------------------------------
   Steadfast Advanced Tracking - Premium UI (Gradient)
---------------------------------------------- */

/* -------- Variables (single place to tune) -------- */
/* Base wrapper */
.stdf-adv-tracking-details {
    margin-bottom: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    border: 1px solid #CECECE;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;;
}

/* Header */
.stdf-adv-tracking-header {
    background: linear-gradient(90deg, rgba(255,230,216,1), rgba(255,243,236,1));
    padding: 16px 20px;
    border-bottom: 1px solid #CECECE;
}
.stdf-adv-tracking-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* ----------------------------------------------------
   PREMIUM GRADIENT UI + PERFECT ALIGNMENT + ANIMATION
-------------------------------------------------------*/

/* Timeline wrapper */
.stdf-adv-timeline {
    position: relative;
    margin: 2.5em 0;
	padding-left: 10px;
}

/* Vertical line — perfectly centered with icon wrapper */
.stdf-adv-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
	
    width: 3px;
    background: linear-gradient(to bottom, #bfe3ff, #8ab8ff, #6f8dff);
    opacity: 0.85;
    border-radius: 2px;
}

/* Timeline list */
.stdf-adv-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Timeline item */
.stdf-adv-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.45s ease forwards;
}

/* Icon wrapper */
.timeline-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff, #d9e6ff);
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
}

/* Icon images */
.timeline-icon img {
    width: 26px;
    height: 26px;
    display: block;
}

/* Content */
.stdf-adv-timeline-content {
    margin-left: 18px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e7ecff;
}

.timeline-timestamp {
    display: block;
    font-size: 13px;
    color: #7b88a8;
    margin-bottom: 4px;
}

.timeline-message {
    font-size: 15px;
    font-weight: 500;
    color: #47506b;
}

/* ----------------------------------------------------
   LATEST ITEM — Premium Glow Animation (Restored)
-------------------------------------------------------*/

.stdf-adv-timeline-item.latest .timeline-icon {
    animation: pulseGlow 1.8s ease-in-out infinite;
    background: linear-gradient(135deg, #d8e4ff, #aec8ff);
    box-shadow:
        0 0 0 rgba(130, 160, 255, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.12);
}

.stdf-adv-timeline-item.latest .stdf-adv-timeline-content {
    border-color: #b9caff;
    background: linear-gradient(135deg, #f9fbff, #edf1ff);
}

/* Glow animation */
@keyframes pulseGlow {
    0% {
        box-shadow:
            0 0 0 0 rgba(120, 150, 255, 0.45),
            0 6px 16px rgba(0, 0, 0, 0.12);
    }
    70% {
        box-shadow:
            0 0 0 14px rgba(120, 150, 255, 0),
            0 6px 16px rgba(0, 0, 0, 0.12);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(120, 150, 255, 0),
            0 6px 16px rgba(0, 0, 0, 0.12);
    }
}

/* Fade-in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .stdf-adv-timeline-item .stdf-adv-timeline-content,
    .stdf-adv-timeline-item .timeline-icon,
    .stdf-adv-timeline-item.latest .timeline-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* No Updates */
.stdf-adv-no-updates {
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Shortcode Form */
.stdf-adv-tracking-form {
    display: flex;
    gap: 5px;
}

.stdf-adv-tracking-form input[type="text"] {
    flex-grow: 1;
}