/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

/* Stranski menu */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100%;
    background: #1f2937; /* temno siva */
    padding-top: 20px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.sidebar a:hover {
    background: #374151;
    border-left: 4px solid #3b82f6; /* modra */
}

.sidebar a.active {
    background: #111827;
    border-left: 4px solid #3b82f6;
}

/* Glavna vsebina */
.main-content {
    margin-left: 220px;
    padding: 30px;
}

/* Kartice (cards) */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 10px;
    color: #111827;
}

.card p {
    color: #4b5563;
}

/* Login page */
.login-container {
    width: 350px;
    margin: 120px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container input {
    width: 90%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.login-container button {
    width: 95%;
    padding: 12px;
    margin-top: 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.login-container button:hover {
    background: #2563eb;
}

.error {
    color: red;
    margin-top: 10px;
}

/* Tabela za artikle/izposoje */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #d1d5db;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: #e5e7eb;
    font-weight: 600;
}
