/* ==================================================
   PROMET UŽIVO - PROFESIONALNI INFORMATIVNI DIZAJN
================================================== */
:root {
    --tr-bg: #ffffff;
    --tr-border: #e5e7eb;
    --tr-text-main: #111827; /* Jako tamna siva, skoro crna za odličan kontrast */
    --tr-text-sub: #4b5563;  /* Ozbiljna siva za opise */
    --tr-header-bg: #f9fafb;
}

/* Glavni okvir - Oštrije ivice, autoritativan gornji obrub */
.gr-traffic-widget {
    background: var(--tr-bg);
    border: 1px solid var(--tr-border);
    border-top: 3px solid #1f2937; /* Jaka tamna linija na vrhu (News stil) */
    border-radius: 4px; /* Oštrije ivice, ozbiljniji izgled */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 25px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Zaglavlje widgeta */
.gr-traffic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--tr-header-bg);
    border-bottom: 1px solid var(--tr-border);
}

.gr-traffic-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--tr-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.gr-live-dot {
    width: 8px;
    height: 8px;
    background-color: #dc2626; /* Stroga crvena */
    border-radius: 50%;
    animation: pulse-red-strict 2s infinite;
}

@keyframes pulse-red-strict {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.gr-traffic-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Redovi / Linije (Više nije "kartica", nego strogi red) */
.gr-traffic-list {
    display: flex;
    flex-direction: column;
}

.gr-traffic-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tr-border);
}

.gr-traffic-card:last-child {
    border-bottom: none;
}

/* Gornji dio reda */
.gr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

/* Naziv rute sa čistom SVG ikonom */
.gr-route-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--tr-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-icon-svg {
    display: flex;
    align-items: center;
    color: #9ca3af; /* Neutralna siva za ikonu */
}

/* Novi ozbiljni statusi (Samo tekst + tačka u boji) */
.gr-status-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Boje za ozbiljne indikatore */
.status-green { color: #16a34a; }
.status-green .gr-status-indicator { background-color: #16a34a; }

.status-yellow { color: #ca8a04; }
.status-yellow .gr-status-indicator { background-color: #eab308; }

.status-orange { color: #ea580c; }
.status-orange .gr-status-indicator { background-color: #f97316; }

.status-red { color: #dc2626; }
.status-red .gr-status-indicator { background-color: #dc2626; }

/* Tekst ispod - čist i čitljiv */
.gr-card-bottom {
    font-size: 14px;
    color: var(--tr-text-sub);
    line-height: 1.5;
    padding-left: 26px; /* Ravnanje sa tekstom, bez prelaska preko ikone */
}

/* Prazno stanje */
.gr-empty {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--tr-text-sub);
}

/* Mobilni pregled */
@media (max-width: 500px) {
    .gr-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .gr-card-bottom {
        padding-left: 0;
        margin-top: 6px;
    }
}