@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --success-color: #10b981;
    --bg-color: #f3f4f6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
}

/* Navigacija */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-user-info {
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 1.5rem;
}

/* Kartice */
.main-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    padding: 2rem;
    margin-top: 2rem;
}

/* Tabela */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-custom thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
    border: none;
}

.table-custom tbody tr {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

/* --- TUKAJ JE SPREMEMBA ZA HOVER --- */
.table-custom tbody tr:hover {
    background-color: #e9ecef; /* Bolj opazna svetlo siva */
}
/* ---------------------------------- */

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.table-custom td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.table-custom td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* Gumbi */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border: none;
    transition: background 0.2s;
}
.btn-custom-primary:hover { background-color: #1d4ed8; color: white; }

.btn-custom-outline {
    border: 2px solid #e2e8f0;
    background: transparent;
    color: var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
}
.btn-logout {
    background-color: #fee2e2;
    color: #ef4444;
    font-weight: 600;
    border: none;
}
.btn-logout:hover { background-color: #fecaca; color: #dc2626; }

/* Gumb za uspeh */
.btn-added {
    background-color: var(--success-color) !important;
    color: white !important;
    border-color: var(--success-color) !important;
    transition: all 0.3s ease;
}

/* Login */
.login-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
}