
/* ==================================================
   SERVISNE INFORMACIJE - STATIČNI WIDGET (BIJELA VERZIJA)
================================================== */
:root {
    --si-bg: #ffffff;
    --si-border: #e5e7eb;
    --si-text-main: #111827; 
    --si-text-sub: #4b5563;  
    --si-header-bg: #f9fafb; /* Sivilo samo za naslov */
    --si-accent: #2563eb;
    --si-alert: #dc2626; 
}

/* Glavni okvir */
.gr-service-widget {
    background: var(--si-bg);
    border: 1px solid var(--si-border);
    border-top: 3px solid #1f2937;
    border-radius: 4px; 
    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);
    overflow: hidden;
}

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

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

/* Prelomna vijest */
.gr-service-alert-box {
    background: #fef2f2;
    border-bottom: 1px solid #fee2e2;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

a.gr-service-alert-box:hover { background: #fee2e2; }

.gr-alert-icon {
    color: var(--si-alert);
    animation: pulse-alert 2s infinite;
    flex-shrink: 0;
}

.gr-alert-text {
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    line-height: 1.4;
}

/* Gornji Grid (SADA POTPUNO BIJELI) */
.gr-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #ffffff; /* Promijenjeno u bijelo */
    border-bottom: 1px solid var(--si-border);
}

.gr-grid-item {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--si-border);
    border-bottom: 1px solid var(--si-border);
}

.gr-grid-item:last-child:nth-child(odd) {
    grid-column: span 2;
    border-right: none;
}

.gr-grid-item:nth-child(even) { border-right: none; }

.gr-grid-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px; /* Malo veći razmak ikone i teksta */
}

.gr-grid-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--si-text-main);
}

/* Komunalne usluge (Lista) */
.gr-service-list {
    display: flex;
    flex-direction: column;
    background: #ffffff; /* Bijela pozadina */
}

.gr-service-row {
    padding: 14px 16px;
    border-bottom: 1px solid var(--si-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

a.gr-service-row:hover { background: #f9fafb; }
.gr-service-row:last-child { border-bottom: none; }

.gr-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gr-service-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--si-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-service-icon { color: #64748b; }

/* Status Bedževi */
.gr-sv-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }

.gr-row-bottom {
    font-size: 13px;
    color: var(--si-text-sub);
    padding-left: 26px;
    line-height: 1.5;
}

.gr-read-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--si-accent);
    margin-top: 4px;
    display: inline-block;
}

@media (max-width: 400px) {
    .gr-service-grid { grid-template-columns: 1fr; }
    .gr-grid-item { border-right: none; }
    .gr-grid-item:last-child:nth-child(odd) { grid-column: auto; }
}