/* Globalni stili */
body {
    background-color: #f8f9fa;
}

/* Login stran */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

/* Kartice */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

/* Tabele */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Gumbi */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Navigacija */
.navbar-brand {
    font-weight: bold;
}

.nav-link {
    padding: 0.5rem 1rem !important;
}

.nav-link i {
    margin-right: 5px;
}

/* Kartice statistike */
.card.bg-primary,
.card.bg-warning,
.card.bg-info,
.card.bg-success,
.card.bg-danger {
    border-radius: 15px;
}

/* Alerti */
.alert {
    border: none;
    border-radius: 10px;
}

/* Modali */
.modal-content {
    border: none;
    border-radius: 15px;
}

/* Input polja */
.form-control,
.form-select {
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Text truncate */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Toast za kopiranje */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #198754;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Responsivno */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Podrobnosti vpisa */
.entry-details-table {
    width: 100%;
}

.entry-details-table th {
    width: 40%;
    padding: 8px 0;
    color: #6c757d;
    font-weight: 500;
}

.entry-details-table td {
    padding: 8px 0;
}
