/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Layout */
body {
    display: flex;
    background: #f4f6f8;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #0d0d0d;
    color: white;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 4px solid #00aaff;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00aaff;
}

/* Sidebar links */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-item:hover {
    background: #444;
    color: white;
    transform: translateX(-5px);
}

.nav-item.active {
    background: #00aaff;
    color: black;
}

/* Main content */
.main {
    flex: 1;
    padding: 30px;
	
}
.main h1 { margin-bottom: 25px; /* ali 30px, po želji */ }

/* Cards */
.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: #00aaff;
}

/* LOGIN PAGE */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f2f5;
}

.login-box {
    background: white;
    padding: 35px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-box h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #00aaff;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #00aaff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.login-box button:hover {
    background: #0088cc;
}

/* ============================
   PROFESIONALNA TABELA
   ============================ */

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Header */
.user-table th {
    background: #d0d4d9;
    border-bottom: 2px solid #b5b9bd;
    padding: 0;
    text-align: left;
}

/* Header links */
.user-table th a {
    display: block;
    padding: 14px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-align: left;
}

/* Hover on header */
.user-table th a:hover {
    background: #c3c7cc;
    color: #000;
}

/* Active sorted column */
.user-table th.active-sort a {
    background: #c7e7ff;
    color: #000;
}

.user-table th.active-sort a:hover {
    background: #b8defc;
    color: #000;
}

/* Table cells */
.user-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.user-table td:empty::before {
    content: "\00a0";
}

.user-table tr:nth-child(even) td {
    background: #fafbfc;
}

.user-table tr:hover td {
    background: #e8f3ff;
    transition: 0.15s;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #00aaff;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 15px;
}

.btn:hover {
    background: #0088cc;
}

.btn-small {
    padding: 6px 10px;
    background: #444;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 5px;
    font-size: 13px;
}

.btn-small:hover {
    background: #666;
}

.btn-small.danger {
    background: #cc0000;
}

.btn-small.danger:hover {
    background: #ff0000;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

.page-link {
    padding: 8px 12px;
    background: #e3e7eb;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.page-link:hover {
    background: #d0d4d9;
}

.page-link.active {
    background: #00aaff;
    color: white;
}

/* Gumb Dodaj uporabnika */
.btn.add-user {
    margin-top: 15px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 5px;
    background: #2d6cdf;
}

.btn.add-user:hover {
    background: #1f54b5;
}

.btn.add-user .icon {
    color: #000 !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    margin-right: 6px;
    display: inline-block;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box */
.modal-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Modal buttons */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-cancel {
    padding: 8px 14px;
    background: #ccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete {
    padding: 8px 14px;
    background: #cc0000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* ============================
   DODANO ZA OBRAZEC DODAJ UPORABNIKA
   ============================ */

.page-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-vertical input,
.form-vertical select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.save-btn {
    margin-top: 15px;
    padding: 10px 15px;
    background: #00aaff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.save-btn:hover {
    background: #0088cc;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.error {
    background: #ffd6d6;
    color: #a30000;
}

.alert.success {
    background: #d6ffe0;
    color: #006622;
}


