/* srt-style.css */
:root {
    --primary-color: #6366f1; /* Indigo-500 */
    --primary-hover: #4f46e5; /* Indigo-600 */
    --background-start: #f3f4f6;
    --background-end: #e5e7eb;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --border-radius: 16px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.srt-tracking-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
}

.srt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.srt-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.srt-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.srt-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.srt-input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    display: block;
    margin-bottom: 1rem;
}

.srt-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.srt-track-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.srt-track-btn:hover {
    background-color: var(--primary-hover);
}

.srt-track-btn:active {
    transform: scale(0.98);
}

/* Result Section */
#srt-result {
    margin-top: 2rem;
    display: none;
    animation: srtFadeIn 0.4s ease-out;
}

.srt-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e5e7eb;
    margin-left: 10px;
}

.srt-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.srt-timeline-item:last-child {
    padding-bottom: 0;
}

.srt-timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px; /* Adjust based on text alignment */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #fff;
    box-sizing: content-box; /* Important for border calc */
}

/* Specific styling for active/first item */
.srt-timeline-item:first-child::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.srt-timeline-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.srt-timeline-status {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.srt-timeline-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes srtFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.srt-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: srtSpin 1s ease-in-out infinite;
}

@keyframes srtSpin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .srt-tracking-container {
        padding: 1.5rem;
        margin: 0.5rem auto;
        border-radius: 12px;
    }
}
