* {
    outline: none !important;
    font-family: 'Muli', sans-serif;
}

:root {
    --blue: #1E67A7;
    --primary: #1E67A7;
    --yellow: #FDCC24;
}

.btn-primary, .btn-outline-primary:hover {
    border-color: #1E67A7;
    background-color: #1E67A7;
}

@font-face {
    font-family: 'Icons';
    src: url('icons.woff2');
    font-weight: normal;
    font-style: normal;
}

a { color: #1E67A7; }

h1 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: bold;
    font-size: 38px;
}

h2 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: bold;
    font-size: 32px;
    line-height: 48px;
    margin: 25px 0 20px 0;
}

h3 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: bold;
    font-size: 28px;
    line-height: 1.3;
    margin: 25px 0 20px 0;
}

h4 {
    font-family: 'Fira Sans', sans-serif;
    margin: 20px 0 15px 0;
}

h5 {
    font-family: 'Fira Sans', sans-serif;
    margin: 20px 0 15px 0;
}

h6 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-transform: uppercase;
    margin: 20px 0 15px 0;
}

.ic {
    font-family: 'Icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.brand-logo img { width: 300px; height: auto; }

.ic-attachment:before {
    content: "a";
}

.ic-edit::before {
    content: "e";
}

.ic-save::before {
    content: "y";
}

.ic-cancel::before {
    content: "x";
}

.ic-archive::before {
    content: "l";
}

.ic-unarchive::before {
    content: "u";
}

.ic-left::before {
    content: "<";
}

.ic-right::before {
    content: ">";
}

.inline-icons {
    font-size: 16px;
}


body {
    background-color: #f8f8f8;
}

.navbar-blue {
    background: #1E67A7;
    border-bottom: 7px solid #FDCC24;
}

.navbar-blue a { color: #fff; font-weight: bold; font-family: 'Fira Sans', sans-serif; }

.gap-3 { gap: 20px; }

/* index.php popravak za dropdown u tablici */
.table-responsive {
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 1050;
}

.table td {
    vertical-align: middle;
}

tr.opacity-30 > :nth-child(2),
tr.opacity-30 > :nth-child(3),
tr.opacity-30 > :nth-child(4) {
    opacity: .3;
}

tr.opacity-50 > :nth-child(2),
tr.opacity-50 > :nth-child(3),
tr.opacity-50 > :nth-child(4) {
    opacity: .5;
}

/* details.php chat stilovi */
body.details h2,
body.details .inline-h2 {
    padding: 0;
    line-height: 1.1;
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-wrap: balance;
}

body.details h2 {
    padding-block: 12px;
}

.chat-container {
    max-width: 850px;
}

.chat-box {
    background: #fff;
    height: calc(100vh - 530px);
    overflow-y: auto;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.msg {
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 18px;
    width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.details .text-primary {
    color: #1E67A7 !important;
}

/* Admini i Superadmini idu desno (primarna plava boja) */
.msg-admin {
    background: #1E67A7;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Obični useri idu lijevo (obična siva boja) */
.msg-user {
    background: #f1f0f0;
    border: 1px solid #ddd;
    border-bottom-left-radius: 2px;
    color: #333;
}

.attachment-link {
    display: inline-block;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.msg-admin .attachment-link {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.msg-admin .attachment-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #fff;
}

.msg-user .attachment-link {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.msg-user .attachment-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.message-content {
    word-wrap: break-word;
}

.font-weight-bold {
    line-height: 1;
}

footer {
    color: #fff;
    background: #34414D;
    border-top: 10px solid #FDCC24;
    padding-block: 60px;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
}

.hidden {
    display: none;
}

.intkom {
    display: inline-block;
    margin-left: 15px;
    color: #666;
}

.nowrap {
    white-space: nowrap;
}