/* --- style.css : V1012.1 (DÜZELTİLMİŞ SÜRÜM) --- */

/* GENEL AYARLAR */
body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding-bottom: 40px; /* Alt bant için boşluk */
}

/* SIDEBAR (YAN MENÜ) */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -16rem; /* Mobilde gizli */
    transition: margin .25s ease-out;
    background-color: #2c3e50; /* Koyu Lacivert */
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed; /* Sabitlendi */
    z-index: 1000;
    width: 16rem;
    top: 0;
    bottom: 0;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ecf0f1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar-wrapper .list-group {
    width: 16rem;
}

.list-group-item {
    background-color: transparent !important;
    color: #bdc3c7 !important;
    border: none !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.list-group-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: #34495e !important;
    color: #3498db !important;
    font-weight: bold;
    border-left: 4px solid #3498db !important;
}

/* ANA İÇERİK ALANI */
#page-content-wrapper {
    width: 100%;
    transition: all .25s ease-out;
    padding-top: 20px;
}

/* SIDEBAR AÇIKKEN (Masaüstü Varsayılan) */
#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 16rem; /* İçeriği sağa it */
}

/* LOGIN EKRANI */
#login-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
}

/* TABLO VE KARTLAR */
.card { border-radius: 10px; overflow: hidden; }
.badge { font-weight: 500; }
.btn-primary { background-color: #3498db; border-color: #3498db; }
.btn-primary:hover { background-color: #2980b9; border-color: #2980b9; }

/* ÖZEL ANİMASYONLAR */
.yanip-sonen-kirmizi { animation: blink-red 2s infinite; background-color: #fff0f0; }
@keyframes blink-red { 0% { border-left: 5px solid red; } 50% { border-left: 5px solid transparent; } 100% { border-left: 5px solid red; } }

/* --- BLOOMBERG ALT BANT (EKSİK OLAN KISIM BURASIYDI) --- */
#footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    z-index: 10000;
    border-top: 1px solid #3498db;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

#footer-clock {
    padding: 0 15px;
    font-weight: bold;
    font-size: 0.9rem;
    background-color: #34495e;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #555;
    z-index: 2;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 100%;
    padding-left: 100%; 
    box-sizing: content-box;
}

.ticker {
    display: inline-block;
    height: 35px;
    line-height: 35px;
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 30s;
}

.ticker__item {
    display: inline-block;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #ecf0f1;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- RESPONSIVE AYARLAR --- */
@media (min-width: 768px) {
    #sidebar-wrapper { margin-left: 0; }
    #page-content-wrapper { margin-left: 16rem; width: calc(100% - 16rem); }
    #wrapper.toggled #sidebar-wrapper { margin-left: -16rem; }
    #wrapper.toggled #page-content-wrapper { margin-left: 0; width: 100%; }
    #menu-toggle { display: none; } 
}

@media (max-width: 768px) {
    #sidebar-wrapper { margin-left: -16rem; }
    #wrapper.toggled #sidebar-wrapper { margin-left: 0; box-shadow: 5px 0 15px rgba(0,0,0,0.5); }
    #page-content-wrapper { margin-left: 0; width: 100%; padding: 0; }
    .container-fluid { padding-left: 10px; padding-right: 10px; }
    #menu-toggle { display: block; margin-bottom: 10px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .modal-dialog { margin: 10px; width: auto !important; }
    #gizlilik-btn { position: absolute; top: 15px; right: 15px; z-index: 90; }
}
/* --- BLOOMBERG ALT BANT GÜNCELLEME --- */
.ticker-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #1a252f; /* Daha koyu premium lacivert */
    display: flex;
    align-items: center;
    z-index: 9999;
    border-top: 2px solid #e74c3c; /* Bloomberg kırmızısı üst çizgi */
    overflow: hidden;
}

.ticker-clock {
    background: #e74c3c;
    color: white;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-family: monospace;
    white-space: nowrap;
    z-index: 10001;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.ticker-scroll-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker linear infinite;
}

/* Dinamik hız ayarı için bu sınıfı kullanacağız */
.ticker-content {
    display: flex;
}
/* --- BLOOMBERG ALT BANT VE SAAT --- */
.ticker-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #1a252f;
    display: flex;
    align-items: center;
    z-index: 10000;
    border-top: 2px solid #e74c3c;
    overflow: hidden;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.ticker-clock {
    background: #e74c3c;
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10001;
    box-shadow: 10px 0 15px rgba(0,0,0,0.3);
}

.ticker-scroll-container {
    flex: 1;
    overflow: hidden;
}

.ticker__item {
    display: inline-block;
    padding: 0 25px;
    color: #ecf0f1;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}
.hover-effect:hover {
    background-color: #f1f4f9 !important;
    transform: translateX(5px);
    transition: all 0.2s ease;
}