/* linija5.css */
:root {
    --primary: #d62839;
    --primary-hover: #b71f2e;
    --secondary: #1d3557;
    --success: #00b894;
    --background: #f4f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow-small: 0 8px 20px rgba(0, 0, 0, .05);
    --shadow: 0 20px 60px rgba(0, 0, 0, .08);
    --radius: 22px;
    --transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.np-wrapper {
    width: min(1320px, 94%);
    margin: auto;
    padding: 40px 0;
}

/* ЗАГЛАВЉЕ */
.np-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 35px;
    padding: 35px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.np-logo-section { display: flex; align-items: center; gap: 18px; }
.np-logo-section img { height: 70px; }
.linija-broj-badge {
    background: var(--primary); color: white; font-size: 32px; font-weight: 800;
    width: 65px; height: 65px; display: flex; align-items: center; justify-content: center;
    border-radius: 18px; box-shadow: 0 10px 25px rgba(214, 40, 57, .3);
}
.np-title h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.np-title p { color: var(--text-light); font-size: 15px; margin-top: 5px; }

/* УЖИВО ТАЈМЕР И РАДАР */
.live-tracker-card {
    background: linear-gradient(90deg, #ffffff, #f8fafc);
    border-radius: 22px;
    padding: 25px 35px;
    box-shadow: var(--shadow-small);
    border-left: 6px solid var(--success);
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tracker-info { display: flex; flex-direction: column; gap: 8px; }
.tracker-status { font-size: 15px; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: 0.5px; }
.tracker-main-text { font-size: 18px; font-weight: 600; color: var(--text); }
.tracker-main-text strong { color: var(--primary); }
.tracker-badge { background: #e6f7ed; color: var(--success); padding: 4px 10px; border-radius: 8px; font-weight: 800; }

.radar-section {
    background: #f8fafc; border-radius: 16px; padding: 18px 24px;
    border: 1px solid var(--border); margin-bottom: 35px;
}
.radar-title { font-size: 14px; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.radar-text { font-size: 15px; font-weight: 600; color: var(--text); }
.puls-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 184, 148, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

/* ТАБОВИ ЗА ДАНЕ */
.tab-controls { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 2px solid var(--border); padding-bottom: 15px; }
.tab-btn {
    background: transparent; border: none; padding: 12px 24px; font-size: 16px; font-weight: 700;
    color: var(--text-light); cursor: pointer; border-radius: 12px; transition: var(--transition);
}
.tab-btn:hover { background: #eef2ff; color: var(--secondary); }
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(214, 40, 57, .2); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ТАБЕЛЕ */
.smer-title { font-size: 18px; font-weight: 800; color: var(--secondary); margin: 30px 0 15px; display: flex; align-items: center; gap: 10px; }
.table-responsive {
    overflow-x: auto; background: white; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-small); margin-bottom: 30px;
}
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f8fafc; font-weight: 700; color: var(--text); }
.col-fixed { position: sticky; left: 0; background: white; z-index: 10; text-align: left; font-weight: 700; border-right: 2px solid var(--border); }
th.col-fixed { background: #f8fafc; z-index: 11; }
tbody tr:hover td:not(.active-col-cell) { background: #fdf2f3; }
.col-km { background: #f8fafc; font-weight: 700; color: var(--text-light); }

/* АКТИВНЕ КОЛОНЕ */
.active-col-header { background: var(--success) !important; color: white !important; }
.active-col-cell { background: #e6f7ed !important; font-weight: 700; color: var(--text) !important; border-left: 2px dashed var(--success); border-right: 2px dashed var(--success); }

/* ДУГМАД */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px; background: var(--primary); color: white; font-weight: 700; transition: var(--transition); text-decoration: none; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(214, 40, 57, .2); }