:root {
    --bento-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #0f172a;
}

.bento-flights-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.bento-header {
    margin-bottom: 10px;
}

.live-indicator {
    background: #007AFF;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Grid Header (Legenda) - Vidljivo samo na desktopu */
.bento-grid-header {
    display: grid;
    grid-template-columns: 100px 180px 1fr 180px 140px 40px;
    gap: 16px;
    padding: 0 20px 10px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid Container */
.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Horizontalna Kartica */
.flight-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 100px 180px 1fr 180px 140px 40px;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.flight-card:hover {
    background: #f1f5f9;
}

/* Stilovi elemenata */
.flight-code {
    font-weight: 800;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.airline-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.destination-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-group{
    display: flex;
    gap: 10px;
    justify-content: start;

}

.time-row {
    display: flex;
    gap: 12px;
}

.time-box {
    display: flex;
    flex-direction: column;
}

.time-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
}

.time-value {
    font-size: 14px;
    font-weight: 700;
}

.time-value.estimated {
    color: #0284c7;
}

.bento-status {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 30px;
}

/* Status Colors */
.status-landed {
    background: #dcfce7;
    color: #166534;
}

.status-scheduled {
    background: #f1f5f9;
    color: #475569;
}

.status-delayed {
    background: #fee2e2;
    color: #991b1b;
}

.track-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #003d7a;
    color: white;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    justify-content: center;
}
.status-action-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .track-btn {
        margin-top: 0;
    }

    .bento-grid-header {
        display: none;
    }

    .flight-card {
        display: grid;
        /* Reorganizacija: vrh (code/airline), sredina (dest/vremena), dno (status/prati) */
        grid-template-areas:
            "code airline"
            "dest times"
            "actions actions";
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .flight-code {
        grid-area: code;
        justify-self: start;
    }

    .airline-name {
        grid-area: airline;
        justify-self: end;
        font-size: 12px;
    }

    .destination-name {
        grid-area: dest;
        align-self: center;
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* VREMENA - Jedno do drugog desno od destinacije */
    .time-group {
        grid-area: times;
        display: flex;
        flex-direction: row;
        /* Horizontalno */
        gap: 10px;
        align-items: center;
        justify-content: end;
    }

    .time-box {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .time-label {
        font-size: 8px;
        color: #94a3b8;
    }

    .time-value {
        font-size: 14px;
        font-weight: 700;
    }

    /* STATUS I PRATI LET - Novi red, jedno do drugog */
    .status-action-row {
        grid-area: actions;
        display: flex;
        flex-direction: row;
        /* Horizontalno */
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
        gap: 10px;
    }

    .bento-status {
        flex: 1;
        /* Status zauzima preostali prostor */
        text-align: center;
        padding: 8px;
        font-size: 11px;
        margin: 0;
        /* Poništavamo margine */
    }


}




.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    grid-column: 1 / -1;
}

.nav-btn-number {
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e40af;
    width: 35px;
    height: 35px;
    border-radius: 8px; /* Bento kocke */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-number:hover {
    background: #eff6ff;
    border-color: #003d7a;
    color: #003d7a;
}

/* Stil za aktivnu stranicu */
.nav-btn-number.active {
    background: #003d7a;
    color: white;
    border-color: #003d7a;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.boarding-badge {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: #166534; 
    
    
    animation: pulse 2s infinite ease-in-out; 
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(22, 101, 52, 0.9);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.7);
    }
}