/* Custom CSS za Bootstrap 5 modernizaciju */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navigation Bar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background-color: #fff !important;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.card-header {
    border-bottom: 2px solid rgba(0,0,0,.125);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-header h5 {
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Sidebar */
.sidebar {
    padding-left: 0;
    padding-right: 0;
}

/* Main Content */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Slider Container */
.wt-rotator {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.screen {
    width: 100%;
    height: auto;
}

.screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Sections */
.content-naslovna,
.content-izdvajamo-iz-naslovna,
.baner-sredina {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 3px solid var(--primary-color);
}

footer a {
    color: #fff;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .container-fluid {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }

    .container-fluid {
        max-width: 100%;
    }
}

/* Accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.fw-bold {
    font-weight: 600 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* HR Styling */
hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* List Styles */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table {
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table td {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
}

/* Modal Improvements */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Alert Styles */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.alert-primary {
    border-left-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Pagination */
.pagination {
    margin-bottom: 1.5rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
