html {font-family: 'Nunito', sans-serif;}
body {font-family: 'Nunito', sans-serif; background-color:#f8f9fa;}
.container {max-width:1800px;}

/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 300px;
    background: #7386D5;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
    border-top: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    /* display: block;
    position: absolute; */
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

:root {
    --mp-bg: #f4f7fb;
    --mp-surface: #ffffff;
    --mp-border: #dfe7f1;
    --mp-text: #172033;
    --mp-muted: #657389;
    --mp-primary: #0f766e;
    --mp-primary-dark: #115e59;
    --mp-blue: #2563eb;
    --mp-yellow: #f59e0b;
    --mp-red: #dc2626;
    --mp-sidebar: #121826;
}

html, body {
    background: var(--mp-bg);
    color: var(--mp-text);
    letter-spacing: 0;
}

p {
    color: var(--mp-muted);
    font-size: .96rem;
    line-height: 1.55;
}

.container {
    max-width: 1480px;
}

.wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 184, 166, .08), transparent 28%),
        radial-gradient(circle at 96% 12%, rgba(245, 158, 11, .09), transparent 24%),
        var(--mp-bg);
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--mp-sidebar);
    color: #fff;
    box-shadow: 12px 0 30px rgba(15, 23, 42, .10);
}

#sidebar .sidebar-header {
    padding: 26px 18px 18px;
    background: #0b1020;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#sidebar .navbar-brand {
    margin: 0;
}

#sidebar .navbar-brand img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
}

#sidebar ul.components {
    padding: 16px 12px;
    border: 0;
}

#sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 700;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a {
    color: #fff;
    background: rgba(20, 184, 166, .22);
    text-decoration: none;
}

#content {
    padding: 0;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    padding: 12px 18px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mp-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.sidebar-backdrop {
    display: none;
}

.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.1;
}

.topbar-title strong {
    font-size: 15px;
}

.topbar-title span {
    color: var(--mp-muted);
    font-size: 12px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
}

.app-page {
    padding-top: 28px;
    padding-bottom: 36px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.page-header h1 {
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 800;
}

.page-header p {
    margin-bottom: 0;
    max-width: 760px;
}

.page-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--mp-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.surface,
.card,
.box {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.box {
    padding: 18px;
}

.box-header h3,
.box-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.app-alert {
    border-radius: 8px;
    border-width: 1px;
}

.btn {
    border-radius: 8px;
    font-weight: 800;
}

.btn-primary {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
}

.btn-primary:hover {
    background: var(--mp-primary-dark);
    border-color: var(--mp-primary-dark);
}

.btn-warning {
    background: var(--mp-yellow);
    border-color: var(--mp-yellow);
    color: #1f2937;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border-color: var(--mp-border);
    border-radius: 8px;
}

textarea.form-control {
    min-height: 96px;
}

.form-control:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .12);
}

.app-form {
    padding: 20px;
}

.app-form label,
.form-group label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-section {
    margin-bottom: 18px;
}

.form-section-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mp-border);
}

.form-section-title span {
    font-size: 16px;
    font-weight: 900;
}

.form-section-title small {
    color: var(--mp-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-panel-highlight {
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, .24);
    border-left: 4px solid var(--mp-primary);
    border-radius: 8px;
    background: #f0fdfa;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.program-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.program-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    color: var(--mp-text);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.program-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .35);
    color: var(--mp-text);
    text-decoration: none;
}

.program-choice.is-featured {
    border-color: rgba(15, 118, 110, .35);
    background: linear-gradient(135deg, #fff, #ecfdf5);
}

.choice-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfeff;
    color: var(--mp-primary);
    font-size: 20px;
}

.program-choice strong {
    font-size: 18px;
}

.program-choice small {
    color: var(--mp-muted);
    line-height: 1.5;
}

.app-table {
    margin-bottom: 0;
}

.app-table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--mp-border);
    color: var(--mp-muted);
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table tbody td {
    border-top: 1px solid #edf2f7;
    vertical-align: middle;
    white-space: normal;
}

.app-table .actions-cell {
    min-width: 190px;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
}

.table-responsive {
    border-radius: 8px;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.soft-badge-info {
    background: #e0f2fe;
    color: #075985;
}

.soft-badge-success {
    background: #dcfce7;
    color: #166534;
}

.soft-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.soft-badge-muted {
    background: #eef2f7;
    color: #475569;
}

.filter-panel {
    padding: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.filter-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, .24);
    border-radius: 8px;
    background: #f0fdfa;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip-checks,
.switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-checks label,
.switch-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-text);
    font-size: 13px;
    font-weight: 700;
}

.role-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.compact-control {
    max-width: 190px;
}

.admin-users-table td {
    vertical-align: top;
}

.admin-inline-fields {
    gap: 8px;
    min-width: 220px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    align-items: start;
}

.magnific-img.img_item {
    position: relative;
    width: 100%;
    min-height: 150px;
    margin: 0 !important;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.magnific-img.img_item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-tools {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.btn-add-photos {
    min-height: 48px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid rgba(15, 118, 110, .24);
    background: #ecfdf5;
    color: var(--mp-primary);
}

.btn-add-photos .photo-upload-camera {
    font-size: 22px;
    line-height: 1;
}

.btn-add-photos .photo-upload-images {
    font-size: 16px;
    line-height: 1;
}

.btn-add-photos:hover {
    background: #d1fae5;
    color: var(--mp-primary-dark);
}

.remove-image,
.remove-preview-image {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 38, 38, .94);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery-preview-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #fff;
    aspect-ratio: 1;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-photo-tools {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.rotate-preview-image {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.image-upload-progress {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .28);
}

.image-upload-progress.is-visible {
    display: flex;
}

.image-upload-progress-box {
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
}

.image-upload-progress-title {
    margin-bottom: 4px;
    color: var(--mp-primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.image-upload-progress-detail {
    min-height: 18px;
    color: var(--mp-muted);
    font-size: 13px;
}

.image-upload-progress-track {
    height: 7px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.image-upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--mp-primary);
    transition: width .18s ease;
}

.profile-photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.profile-photo-strip a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--mp-border);
    aspect-ratio: 1;
    background: #fff;
}

.profile-card-photo {
    position: relative;
}

.profile-card-photo-tools {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    gap: 4px;
}

.profile-card-photo-tools .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
}

.profile-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-photo-card-header .btn-add-photos {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
}

.profile-photo-empty {
    padding: 14px;
    border: 1px dashed var(--mp-border);
    border-radius: 8px;
    color: var(--mp-muted);
}

.photo-tools .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 16px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .22), rgba(245, 158, 11, .18)),
        #f8fafc;
}

.login-shell {
    width: min(940px, 100%);
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    background: #fff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 34px;
    background: #111827;
    color: #fff;
}

.login-brand img {
    width: 190px;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
}

.login-brand p {
    color: rgba(255,255,255,.78);
}

.login-form-panel {
    padding: 38px;
}

.pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.page-item .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    color: var(--mp-text);
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.page-item.active .page-link {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
}

.select2-consumer-option {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.select2-consumer-option strong {
    font-size: 14px;
    color: var(--mp-text);
}

.select2-consumer-option small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: 11px;
}

.simple-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px;
    background: rgba(15, 23, 42, .88);
}

body.gallery-open {
    overflow: hidden;
}

.simple-gallery-modal img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.simple-gallery-close,
.simple-gallery-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #111827;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.simple-gallery-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    font-weight: 900;
}

.simple-gallery-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
}

.simple-gallery-prev {
    left: 18px;
}

.simple-gallery-next {
    right: 18px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    padding: 3px 6px;
    border-color: #d9e2ec;
    border-radius: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: 220px;
    margin: 2px 0;
    padding: 2px 8px 2px 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    left: 7px;
    color: #64748b;
    font-weight: 900;
}

#filter_korisnika + .select2-container .select2-selection--multiple {
    max-height: 88px;
    overflow-y: auto;
}

#filter_korisnika + .select2-container .select2-selection--multiple .select2-selection__choice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 180px;
    min-height: 34px;
    padding: 5px 8px;
    white-space: normal;
}

#filter_korisnika + .select2-container .select2-selection__choice__remove {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    line-height: 16px;
    text-align: center;
}

.select2-consumer-selection {
    display: block;
    min-width: 0;
    line-height: 1.15;
}

.select2-consumer-selection strong,
.select2-consumer-selection small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-consumer-selection strong {
    max-width: 132px;
    font-size: 12px;
}

.select2-consumer-selection small {
    max-width: 132px;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        margin-left: -260px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(15, 23, 42, .42);
    }

    .form-split,
    .program-choice-grid,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-primary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-page {
        padding-top: 18px;
    }

    .page-header {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .form-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .role-form {
        flex-direction: column;
        align-items: stretch;
    }

    .login-brand,
    .login-form-panel {
        padding: 24px;
    }

    .action-row {
        justify-content: flex-start;
    }
}
