@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === Container === */
.spn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* === Card === */
.spn-card {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.07);
    padding: 2.5rem;
    box-sizing: border-box;
    border: 1px solid #f3f4f6;
}

/* === Header === */
.spn-header {
    text-align: center;
    margin-bottom: 2rem;
}

.spn-header-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    line-height: 1;
}

.spn-header h2 {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -.02em;
}

.spn-header p {
    margin: 0;
    font-size: .95rem;
    color: #6b7280;
}

/* === Form === */
.spn-input-group {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.spn-input {
    flex: 1;
    padding: .9rem 1.1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    min-width: 0;
    box-sizing: border-box;
}

.spn-input:focus {
    border-color: #f53d2d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,61,45,.1);
}

.spn-button {
    flex-shrink: 0;
    padding: .9rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #ff6b4a, #f53d2d);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: filter .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}

.spn-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(245,61,45,.28);
}

.spn-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* === Result Area === */
.spn-result-area {
    display: none;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
    margin-top: .5rem;
}

/* === Summary Banner === */
.spn-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fff7f6, #fff);
    border: 1.5px solid #fde8e6;
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.5rem;
}

.spn-summary-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.spn-summary-info {}

.spn-summary-status {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.spn-summary-code {
    font-size: .82rem;
    color: #6b7280;
    margin-top: .25rem;
}

.spn-summary-local {
    font-size: .85rem;
    color: #374151;
    margin-top: .2rem;
}

/* === Timeline === */
.spn-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.2rem;
    letter-spacing: -.01em;
}

.spn-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.spn-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #f3f4f6;
}

.spn-timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.3rem;
}

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

.spn-timeline-marker {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #e5e7eb;
    color: #9ca3af;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.spn-timeline-item.is-current .spn-timeline-marker {
    background: #f53d2d;
    color: #fff;
    font-size: 8px;
    box-shadow: 0 0 0 4px rgba(245,61,45,.15);
}

.spn-timeline-content {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: .85rem 1rem;
}

.spn-timeline-item.is-current .spn-timeline-content {
    background: #fff7f6;
    border-color: #fde8e6;
}

.spn-status {
    font-weight: 600;
    font-size: .95rem;
    color: #111827;
    line-height: 1.3;
}

.spn-location {
    font-size: .82rem;
    color: #4b5563;
    margin-top: .25rem;
}

.spn-date {
    font-size: .80rem;
    color: #9ca3af;
    margin-top: .2rem;
}

/* === Estados de erro / não encontrado === */
.spn-not-found,
.spn-error {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 14px;
}

.spn-not-found {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #374151;
}

.spn-not-found-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.spn-not-found p,
.spn-error p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}

.spn-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* === Responsivo === */
@media (max-width: 480px) {
    .spn-card { padding: 1.5rem 1.2rem; }
    .spn-input-group { flex-direction: column; }
    .spn-button { width: 100%; }
    .spn-summary { flex-direction: column; text-align: center; }
}
