﻿/* ==========================================
   MARKET TICKER TAPE - MINIMALIST
   ========================================== */

.market-ticker-container {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

/* DARK MODE - koristi html[data-bs-theme="dark"] */
html[data-bs-theme="dark"] .market-ticker-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.market-ticker {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    white-space: nowrap;
    -webkit-animation: ticker-scroll 60s linear infinite;
    animation: ticker-scroll 60s linear infinite;
}

    .market-ticker:hover {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }

@-webkit-keyframes ticker-scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-content {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    align-items: baseline;
}

.ticker-item {
    display: inline-flex !important;
    align-items: baseline;
    padding: 0 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

html[data-bs-theme="dark"] .ticker-item {
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.ticker-symbol,
.ticker-price,
.ticker-change {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    vertical-align: baseline;
}

.ticker-symbol {
    color: #2c3e50;
    margin-right: 8px;
    font-weight: 600;
}

html[data-bs-theme="dark"] .ticker-symbol {
    color: #e8e9ed;
}

.ticker-price {
    color: #34495e;
    margin-right: 8px;
}

html[data-bs-theme="dark"] .ticker-price {
    color: #d1d5db;
}

.ticker-change {
    background: none !important;
    padding: 0 !important;
}

    .ticker-change.positive {
        color: #28a745;
    }

    .ticker-change.negative {
        color: #dc3545;
    }

    .ticker-change.neutral {
        color: #007bff;
    }

    .ticker-change i {
        display: none;
    }

/* Responsive */
@media (max-width: 768px) {
    .market-ticker-container {
        padding: 10px 0;
    }

    .ticker-item {
        padding: 0 20px;
    }

    .ticker-symbol,
    .ticker-price,
    .ticker-change {
        font-size: 13px;
    }
}

/* ==========================================
   DROPDOWN NAVIGATION STYLES
   ========================================== */

.dropdown-menu {
    background: #212121 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    animation: fadeIn 0.3s ease-in-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 10px 15px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    background: transparent !important;
}

.dropdown-menu > li:not(:first-child) {
    border-top: 1px solid #333333 !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .submenu-level2 {
        display: none !important;
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: -1px;
        margin-left: 0;
        background: #212121 !important;
        min-width: 200px;
        z-index: 1000;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .dropdown-submenu.show .submenu-level2 {
        display: block !important;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        border-top: 0.3em solid transparent;
        border-right: 0;
        border-bottom: 0.3em solid transparent;
        border-left: 0.3em solid;
        float: right;
        margin-top: 0.5em;
    }

.submenu-level2 .dropdown-item {
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 10px 15px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    background: transparent !important;
}

.submenu-level2 > li:not(:first-child) {
    border-top: 1px solid #333333 !important;
}

.submenu-level2 .dropdown-item:hover,
.submenu-level2 .dropdown-item:focus {
    background: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ==========================================
   MODAL & COOKIE BANNER STYLES
   ========================================== */

.modal-backdrop {
    display: none !important;
}

.modal-message {
    background: transparent;
}

    .modal-message .modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .modal-message .modal-content {
        background: #fff;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
        border-radius: 0;
        border-top: 3px solid #00acac;
    }

    .modal-message .modal-body {
        padding: 20px 0;
    }

    .modal-message.fade .modal-dialog {
        transform: translateY(100%);
    }

    .modal-message.show .modal-dialog {
        transform: translateY(0);
    }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    border-top: 3px solid #00acac;
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

    .cookie-banner.show {
        transform: translateY(0);
    }

/* ==========================================
   THEME COLORS - ACTIVE NAVIGATION ONLY
   ========================================== */

/* BLUE THEME */
body.theme-blue .header .navbar-nav .nav-item .nav-link.active,
body.theme-blue #header .navbar-nav .nav-item .nav-link.active,
body.theme-blue #header .nav-link.active {
    color: #348fe2 !important;
}

/* RED THEME */
body.theme-red .header .navbar-nav .nav-item .nav-link.active,
body.theme-red #header .navbar-nav .nav-item .nav-link.active,
body.theme-red #header .nav-link.active {
    color: #ff5b57 !important;
}

/* PINK THEME */
body.theme-pink .header .navbar-nav .nav-item .nav-link.active,
body.theme-pink #header .navbar-nav .nav-item .nav-link.active,
body.theme-pink #header .nav-link.active {
    color: #f532e5 !important;
}

/* ORANGE THEME */
body.theme-orange .header .navbar-nav .nav-item .nav-link.active,
body.theme-orange #header .navbar-nav .nav-item .nav-link.active,
body.theme-orange #header .nav-link.active {
    color: #f59c1a !important;
}

/* YELLOW THEME */
body.theme-yellow .header .navbar-nav .nav-item .nav-link.active,
body.theme-yellow #header .navbar-nav .nav-item .nav-link.active,
body.theme-yellow #header .nav-link.active {
    color: #ffd900 !important;
}

/* LIME THEME */
body.theme-lime .header .navbar-nav .nav-item .nav-link.active,
body.theme-lime #header .navbar-nav .nav-item .nav-link.active,
body.theme-lime #header .nav-link.active {
    color: #90ca4b !important;
}

/* GREEN THEME - ZELENA BOJA */
body.theme-green .header .navbar-nav .nav-item .nav-link.active,
body.theme-green #header .navbar-nav .nav-item .nav-link.active,
body.theme-green #header .nav-link.active {
    color: #32a932 !important;
}

/* CYAN THEME */
body.theme-cyan .header .navbar-nav .nav-item .nav-link.active,
body.theme-cyan #header .navbar-nav .nav-item .nav-link.active,
body.theme-cyan #header .nav-link.active {
    color: #49b6d6 !important;
}

/* PURPLE THEME */
body.theme-purple .header .navbar-nav .nav-item .nav-link.active,
body.theme-purple #header .navbar-nav .nav-item .nav-link.active,
body.theme-purple #header .nav-link.active {
    color: #727cb6 !important;
}

/* INDIGO THEME */
body.theme-indigo .header .navbar-nav .nav-item .nav-link.active,
body.theme-indigo #header .navbar-nav .nav-item .nav-link.active,
body.theme-indigo #header .nav-link.active {
    color: #6610f2 !important;
}

/* GRAY THEME */
body.theme-gray-500 .header .navbar-nav .nav-item .nav-link.active,
body.theme-gray-500 #header .navbar-nav .nav-item .nav-link.active,
body.theme-gray-500 #header .nav-link.active {
    color: #6c757d !important;
}

/* ==========================================
   BADGE THEME STYLES
   ========================================== */

.badge-theme {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: #00acac;
    text-decoration: none;
}

    .badge-theme:hover {
        background-color: #008c8c;
        color: #fff;
        text-decoration: none;
    }

/* Badge colors for each theme */
body.theme-blue .badge-theme {
    background-color: #348fe2;
}

    body.theme-blue .badge-theme:hover {
        background-color: #2a7bc4;
    }

body.theme-red .badge-theme {
    background-color: #ff5b57;
}

    body.theme-red .badge-theme:hover {
        background-color: #d9534f;
    }

body.theme-pink .badge-theme {
    background-color: #f532e5;
}

    body.theme-pink .badge-theme:hover {
        background-color: #d128c6;
    }

body.theme-orange .badge-theme {
    background-color: #f59c1a;
}

    body.theme-orange .badge-theme:hover {
        background-color: #d9831f;
    }

body.theme-yellow .badge-theme {
    background-color: #ffd900;
}

    body.theme-yellow .badge-theme:hover {
        background-color: #e6c300;
    }

body.theme-lime .badge-theme {
    background-color: #90ca4b;
}

    body.theme-lime .badge-theme:hover {
        background-color: #7cb342;
    }

body.theme-green .badge-theme {
    background-color: #32a932;
}

    body.theme-green .badge-theme:hover {
        background-color: #2a8f2a;
    }

body.theme-cyan .badge-theme {
    background-color: #49b6d6;
}

    body.theme-cyan .badge-theme:hover {
        background-color: #3a9bb8;
    }

body.theme-purple .badge-theme {
    background-color: #727cb6;
}

    body.theme-purple .badge-theme:hover {
        background-color: #5b6ba8;
    }

body.theme-indigo .badge-theme {
    background-color: #6610f2;
}

    body.theme-indigo .badge-theme:hover {
        background-color: #560bd0;
    }

body.theme-gray-500 .badge-theme {
    background-color: #6c757d;
}

    body.theme-gray-500 .badge-theme:hover {
        background-color: #5a6268;
    }
