html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== DEVEXTREME GAUGE STYLES ===== */
.gauge-semicircle svg,
.gauge-semicircle .dxg-circular-gauge {
    height: 150px !important;
    overflow: visible !important;
}

/* ===== NEWS SIDEBAR STYLES ===== */
#newsAccordion .accordion-button {
    font-size: 0.875rem;
    line-height: 1.3;
}

    #newsAccordion .accordion-button:not(.collapsed) {
        background-color: transparent;
        box-shadow: none;
    }

#newsAccordion .accordion-body {
    font-size: 0.813rem;
}

    #newsAccordion .accordion-body .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

/* Dark mode accordion body */
html[data-bs-theme="dark"] #newsAccordion .bg-gray-700 {
    background-color: #2d3035 !important;
}

/* ===== STOCK CHANGE COLORS ===== */
.inc,
.inc .diff {
    color: #4CBB17 !important; /* zeleno za rast */
    font-weight: 600;
}

.dec,
.dec .diff {
    color: #FF0000 !important; /* crveno za pad */
    font-weight: 600;
}

.eqv,
.eqv .diff {
    color: #1CA8DD !important; /* plavo za 0% promjene */
    font-weight: 600;
}

/* Dark mode support za stock change colors */
html[data-bs-theme="dark"] .inc,
html[data-bs-theme="dark"] .inc .diff {
    color: #4CBB17 !important;
}

html[data-bs-theme="dark"] .dec,
html[data-bs-theme="dark"] .dec .diff {
    color: #FF0000 !important;
}

html[data-bs-theme="dark"] .eqv,
html[data-bs-theme="dark"] .eqv .diff {
    color: #1CA8DD !important;
}

/* ===== DATAGRID FONT COLOR ===== */
/* Light theme - tamna siva boja za redove */
#gridContainer .dx-datagrid-rowsview .dx-row td {
    color: #242424 !important;
}

/* Header - plava boja za OBE teme */
#gridContainer .dx-datagrid-headers .dx-datagrid-text-content {
    color: #1CA8DD !important;
}

/* Dark mode - svijetla siva boja za redove */
html[data-bs-theme="dark"] #gridContainer .dx-datagrid-rowsview .dx-row td {
    color: #B3B3B3 !important;
}

/* Header dark mode - takošer plava */
html[data-bs-theme="dark"] #gridContainer .dx-datagrid-headers .dx-datagrid-text-content {
    color: #1CA8DD !important;
}

/* ===== DEVEXTREME DATAGRID HOVER & FOCUS ===== */
/* Hover boja kao focused row */
.dx-datagrid-rowsview .dx-row:hover:not(.dx-row-focused):not(.dx-selection):not(.dx-row-removed):not(.dx-edit-row):not(.dx-row-inserted):not(.dx-group-row) > td:not(.dx-focused) {
    background-color: rgba(51, 122, 183, 0.1) !important; /* Svijetlo plava kao fokusirani red */
}

/* Dark mode - tamnija plava za hover */
html[data-bs-theme="dark"] .dx-datagrid-rowsview .dx-row:hover:not(.dx-row-focused):not(.dx-selection):not(.dx-row-removed):not(.dx-edit-row):not(.dx-row-inserted):not(.dx-group-row) > td:not(.dx-focused) {
    background-color: rgba(51, 122, 183, 0.15) !important;
}

/* Fokusirani red (selected) - glavna plava */
.dx-datagrid-rowsview .dx-row-focused > td {
    background-color: rgba(51, 122, 183, 0.2) !important;
}

html[data-bs-theme="dark"] .dx-datagrid-rowsview .dx-row-focused > td {
    background-color: rgba(51, 122, 183, 0.25) !important;
}
/*Theme panel sa layouta*/
/*.theme-panel {
    position: fixed;
    width: 260px;
    inset-inline-end: -260px;
    top: 0;
    bottom: 0;
    z-index: 1035;
    background: var(--bs-component-bg);
    transition: inset-inline-end .2s linear;
    border-radius: 4px 0 0 4px;
}

    .theme-panel .theme-list {
        margin-bottom: -4px;
        margin-inline-end: -4px;
        display: flex;
        flex-wrap: wrap;
    }

        .theme-panel .theme-list .theme-list-item {
            margin-bottom: 4px;
            margin-inline-end: 4px;
        }

            .theme-panel .theme-list .theme-list-item .theme-list-link {
                width: 28px;
                height: 28px;
                display: block;
                text-decoration: none;
                position: relative;
                border-radius: 30px;
                transition: all .2s linear;
            }

                .theme-panel .theme-list .theme-list-item .theme-list-link:focus,
                .theme-panel .theme-list .theme-list-item .theme-list-link:hover {
                    opacity: .6;
                }

            .theme-panel .theme-list .theme-list-item.active .theme-list-link:before {
                content: "\f00c";
                position: absolute;
                inset-inline-start: 0;
                inset-inline-end: 0;
                top: 0;
                bottom: 0;
                font-size: 14px;
                line-height: 1;
                color: #fff;
                opacity: .4;
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: Font Awesome\ 6 Free, Font Awesome\ 6 Pro, FontAwesome !important;
                font-weight: 900;
                font-style: normal;
                font-variant: normal;
                text-rendering: auto;
            }

            .theme-panel .theme-list .theme-list-item.active .theme-list-link.bg-white:before {
                color: #2d353c;
            }

    .theme-panel .theme-collapse-btn {
        position: absolute;
        inset-inline-start: -30px;
        top: 30%;
        margin-top: -15px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        color: var(--bs-component-color);
        background: var(--bs-component-bg);
        text-align: center;
        border-radius: 4px 0 0 4px;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, .15);
    }

:dir(rtl) .theme-panel .theme-collapse-btn {
    border-radius: 0 4px 4px 0;
}

@media (max-width: 575.98px) {
    .theme-panel .theme-collapse-btn {
        top: 35%;
    }
}

.theme-panel .theme-panel-content {
    background: var(--bs-component-bg);
    padding: 20px;
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    overflow: scroll;
    margin: 0;
    z-index: 10;
}

.theme-panel .theme-panel-divider {
    height: 1px;
    margin: 15px 0;
    background-color: var(--bs-component-border-color);
}

.theme-panel .theme-version {
    margin: 0 0 5px;
    margin: -2.5px;
    display: flex;
    flex-wrap: wrap;
}

.theme-panel .theme-version .theme-version-item {
width: 50%;
position: relative;
padding-top: 35%;
}

.theme-panel .theme-version .theme-version-item .theme-version-link {
display: block;
text-decoration: none;
position: absolute;
top: 0;
inset-inline-start: 0;
inset-inline-end: 0;
bottom: 0;
margin: 2.5px;
}

.theme-panel .theme-version .theme-version-item .theme-version-link .theme-version-cover {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top left;
}

.theme-panel .theme-version .theme-version-item .theme-version-link.active:before,
.theme-panel .theme-version .theme-version-item .theme-version-link:hover:before {
    content: "";
    position: absolute;
    border: 12px solid transparent;
    border-inline-start-color: #9ba8b4;
    border-top-color: #9ba8b4;
    inset-inline-start: 0;
    top: 0;
    z-index: 10;
}

.theme-panel .theme-version .theme-version-item .theme-version-link.active:after,
.theme-panel .theme-version .theme-version-item .theme-version-link:hover:after {
    content: "\f00c";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    color: #fff;
    z-index: 10;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    text-align: center;
    font-family: Font Awesome\ 6 Free, Font Awesome\ 6 Pro, FontAwesome !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
}

.theme-panel .theme-version .theme-version-item .theme-version-link.active:before {
    border-inline-start-color: #007aff;
    border-top-color: #007aff;
}

.theme-panel.active {
    box-shadow: 0 5px 25px rgba(0, 0, 0, .3);
    inset-inline-end: 0;
}

.theme-panel.active .theme-collapse-btn .fa:before {
    content: "\f00d";
}*/

