:root {
    --bg-light: #17181C;
    --bg-hover: #393E46;
    --bg-hover2:#33aadd;
    --bg-hover3:#186cea;
    --color-hover: white;
    --text-light: #ffffff;
    --text-muted: #aaa;
    --border-color: #9b9dab;
    --color-1:#9b9dab;
    --bg-inputtext: #2e3238;
    --bg-inputtext-hover: #393e46;
    --bg-1:#52555b;
    --bg-2:#292c32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #101112;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: #101112;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
}

.main-container{
    margin: 0 auto;
    display: flex;       /* İçerideki öğeleri bir dizine sokar */
    flex-direction: column; /* Alt alta dizer */
    align-items: center;
    background-color: transparent;   
    padding-bottom: 100px;
}


.container {
    position: relative;
    background-color: var(--bg-light);
    width: 95%;
    border-radius: 5px;
    margin-top: 40px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    z-index: 1
}

.export-csv{
    display:flex;
    justify-content: center;       
    align-items: center;
    text-align: center; 
    background-color: var(--bg-1);  
    color:white;
    width:100px;
    height:30px;  
    cursor:pointer;
    transition: 0.5s;
    border-radius:6px;
}

.export-csv-button{
    background-color: inherit;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color:inherit;
    font: inherit;
}

.export-csv:hover{
    background-color: var(--bg-hover3);
    color:#ffffff;
}

.header-container {
    margin: 0;
    background-color: var(--bg-light);
    width: 100%;
    border-radius: 5px;
    display:flex;
    align-items: center; 

    height: 50px;
    justify-content: flex-end;
    padding-bottom: 0px;
    gap: 50px;
}

/* --- Dropdown İçin Güncellenen CSS Kısmı --- */

.header-subs {  
    background-color: transparent;
    color: var(--color-1);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Kapsayıcıya konumlandırma referansı veriyoruz */
.header-subs.has-dropdown {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.header-subs-dropdown {  
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    top: 100%; /* Tetikleyicinin hemen alt sınırından başlar */
    left: 50%;
    transform: translateX(-50%); /* Menüyü tam ortalar */
    background-color: var(--bg-light) !important; /* Arka planın koyu kalmasını garanti eder */
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
    margin-top: 10px; /* Yukarıdaki menü barıyla arasında kibar bir boşluk bırakır */
    z-index: 99;
}

/* Dropdown içerisindeki linkler */
.header-subs-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Global arka planı ezer */
    width: 100%;
    height: 38px;
    text-align: center;
    font-size: 18px; /* Okunabilirlik için ideal boyut */
    transition: 0.3s;
    text-decoration: none;
    color: var(--color-1);
    padding: 0 15px;
}

/* Alt alta gelen linklerin birbirini sıkıştırmaması için */
.header-subs-dropdown a:not(:last-child) {
    margin-bottom: 2px;
}

/* Hover durumları */
.header-subs-dropdown a:hover {
    background-color: var(--bg-hover3) !important;
    color: white !important;
}

.header-subs-dropdown a.active {
    background-color: var(--bg-hover3) !important;
    color: white !important; 
}

/* HOVER EFEKTİ: Fareyle 'has-dropdown' üzerine gelindiğinde menüyü göster */
.header-subs.has-dropdown:hover .header-subs-dropdown {
    display: flex;
    flex-direction: column;       
}

.header-subs:hover {
    color: var(--color-hover);
    cursor: pointer;
}

/* Fare menüye doğru geçerken kapanmaması için görünmez bir köprü alanı */
.header-subs.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px; /* margin-top ile aynı hizada boşluğu kapatır */
    background: transparent;
}

.search-container{
    background-color:transparent;
    display:flex;
    flex-direction: column;       
    align-items: center; 
    margin-top:50px;
    gap:20px;
    width:100%;
    height: 100px;
}

.form{
    background:transparent;
    width:90%;
}

.typeahead__field {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap:20px;
    width: 100%;
    background:transparent;
}

.typeahead__query{
    position: relative;
    width:250px;
    background:transparent;
    margin:0 auto;
    border:none;
}

.typeahead__query input {
    padding-right: 25px; /* Ok simgesi için sağ boşluk */
}

.clear-filter {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    border-radius:7px;
    color: var(--color-1);
    background-color:var(--bg-inputtext);
}

.clear-filter:hover {
    color: var(--bg-hover3);
}

.js-typeahead::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 10px;
}

.typeahead__query::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 10px;
    z-index: 1;
}

.js-typeahead {
    width:100%;
    height: 40px;
    background-color: var(--bg-light);
    border: 1px solid var(--bg-light);
    border-radius: 4px;
    padding: 0 10px;
    color:white;
    font-size: 14px;
    outline: none;
}


.typeahead-menu{
    position: absolute;
    width:100%;
    background-color: var(--bg-inputtext);
    border-radius:5px;
    border-color:transparent;
    display:none;
    flex-direction:column;
    align-items: center; 
    max-height:400px;
    margin-top:10px;
    overflow-y: auto;
    z-index: 2; 
}

.typeahead-menu::-webkit-scrollbar{
  width: 8px;
}

.typeahead-menu::-webkit-scrollbar-thumb {
  background: var(--bg-1); /* Kaydırma çubuğu (thumb) rengi */
  border-radius: 4px;
}

.typeahead-menu::-webkit-scrollbar-track {
  background:  var(--bg-2); /* Arkaplan */
  border-radius: 4px;
}

.typeahead-submenu{
    display: flex;
    align-items: center;     
    width:95%;
    min-height: 30px;
    height: 30px;
    max-height: 30px;
    background-color: transparent;
    color:var(--text-light);
    margin-top:3px;
    margin-bottom:3px;
    transition: 0.25s;
    gap:10px;
    color:var(--color-1);
    cursor: pointer
}

.typeahead-submenu:hover{
    background-color: var(--bg-inputtext-hover);
}

.typeahead__query input {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-inputtext);
    border-radius: 5px;
    cursor: pointer;
}

.js-typeahead:focus {
    border-color: #007bff;
}

.js-typeahead:hover {
    border-color: #007bff;
}

.typeahead__button button {
    text-decoration: none;
    outline: 0;
    font: inherit;
    margin-top: 10px;
    overflow: visible;
    text-transform: none;
    width:150px;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    touch-action: manipulation;
    cursor: pointer;
    background-color: #17181C;
    height:40px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: .5rem .75rem;
    user-select: none;
    color: #555;
    margin-left: -2px;
}

.typeahead__button .button-text {
    background: transparent; /* yazının arkası */
    color: var(--color-1);
    width:100%;
    height:100%;
}


.typeahead__button button:hover {
    background-color: var(--bg-hover);
}

.typeahead__button:hover .button-text{
    color:var(--color-hover);
}


.status{
    background:transparent;
    width: 95%;
    height:70px;
    margin-top:50px;
    display:flex;
    gap:50px;
}

.status_block{
    background:var(--bg-inputtext);
    color:var(--text-light);
    height:100%;
    width:200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap:10px;
    font-size:20px;
    border-radius:10px;
}

.status_number{
    display: flex;
    justify-content: center; /* Yatayda ortalar */ 
    width:100%;
    background: transparent;
}

.status_label{
    display: flex;
    justify-content: center; /* Yatayda ortalar */ 
    width:100%;
    background: transparent;
}


.information-containers {
    background-color: transparent;
    width: calc(100% - 60px);
    margin-left: 30px;
    height: 80px;
    display: flex;
    gap: 30px;
}

.information-container {
    background-color: #2E3238;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    align-self: center;
    border-radius: 5px;
}

.information-container h3 {
    color: white;
    background-color: transparent;
    text-align: center;
}

.information-container h4 {
    color: #9b9dab;
    background-color: transparent;
    text-align: center;
}

.table-container {
    background-color: transparent;
    margin-top: 40px;
    margin-left: 30px;
    width: calc(100% - 60px);

}

.table-bordered {
    color: #9b9dab;
    width: 100%;
    height: 20px;
    background-color: transparent;
    border-collapse: collapse;
}

.table-bordered thead tr th {
    background-color: transparent;
    text-align: left;
    font-size: 13px;
    font-family: Inter, sans-serif;
    padding: 5px 0px;
    font-weight: 600
}

.table-bordered thead tr {
    background-color: transparent;
}

.table-bordered thead {
    background-color: transparent;

}

.table-bordered tbody {
    background-color: transparent;
}

.table-bordered tbody tr {
    background-color: transparent;
    transition: 0.1s;
}

.table-bordered tbody tr td:nth-child(3),
.table-bordered tbody tr td:nth-child(4),
.table-bordered tbody tr td:nth-child(7) {
    color: white;
}

.table-bordered tbody tr td {
    background-color: transparent;
    border-top: 0.5px solid #565C64;
    border-bottom: 0.5px solid #565C64;
    padding: 5px 0px;
}



.table-bordered tbody tr:hover {
    background-color: #1E1F21;
}



/* Her sütuna özel genişlik */
table.table-bordered th:nth-child(1), 
table.table-bordered td:nth-child(1) {
    width: 200px; /* POLITICIAN */
}

table.table-bordered th:nth-child(2), 
table.table-bordered td:nth-child(2) {
    width: 400px; /* STOCK */
}

table.table-bordered th:nth-child(3), 
table.table-bordered td:nth-child(3) {
    width: 120px; /* TRADED */
}

table.table-bordered th:nth-child(4), 
table.table-bordered td:nth-child(4) {
    width: 120px; /* TYPE */
}

table.table-bordered th:nth-child(5), 
table.table-bordered td:nth-child(5) {
    width: 80px; /* VOLUME */
}

table.table-bordered th:nth-child(6), 
table.table-bordered td:nth-child(6) {
    width: 150px; /* BUY PRICE */
}


.pagination-container {
    position:relative;
    display:flex;
    margin-top:70px;
    margin-bottom:150px;
    background-color: transparent;
    width:100%;
    height:30px;
    align-items: center;
    justify-content: center;
}



.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    height: 28px;
    font-family: Inter, sans-serif;
    color: hsl(216, 9.8%, 90%);
    background-color: transparent;
}

.page-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: white;
    font-size: 14px;
    font-weight:500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-btn:hover {
    background-color: #9b9dab;
}

.page-btn-disabled {
    padding: 4px 8px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: hsl(240, 5%, 64.9%);
    font-size: 14px;
    font-weight:500;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-info {
    margin: 0 10px;
    color: white;
    font-weight:500;
}

.per-page-container {
    position:absolute;
    background-color: transparent;
    width:100px;
    height:30px;
    right:20px;
    display:flex;
    gap:10px;
}

.per-page-label {
    display: flex;
    align-items: center;     /* Dikey ortalama */
    justify-content: center; /* Yatay ortalama */    
}
.per-page-button {
    background-color:#2E3238;
    cursor:pointer;
    display: inline-flex;
    align-items: center;     /* Dikey ortalama */
    justify-content: flex-start; /* Yatay ortalama */
    padding:10px 8px;
    border-radius: 5px;
    gap:5px;
    position:relative;
}

.arrow {
    background-color: transparent;
    color: #565C64;
}


.selected-value {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    background-color:#2E3238;
    border-radius: 5px;
    margin-top: 4px;
    display: none;
    flex-direction: column;
    z-index: 100;
    width: 100%;
    box-sizing: border-box; 
    transition: opacity 0.3s ease, visibility 1s ease;
}

/* Dropdown açıldığında görünür olacak */
.per-page-button.open .dropdown-options {
    display: flex; /* Dropdown açılınca flex ile görünür yap */
    display:block;
}

.option:hover {
    background-color: #393E46;
    color: white;
}

.option {
    padding: 6px 10px;
    color: hsl(240, 5%, 64.9%);
    background-color:#2E3238;
    cursor: pointer;
    border-radius: 5px;
}


.name-sub{
    background-color: transparent;
    width: 270px;
}

.no-results{
    background-color: transparent;
    display: none;
    justify-content: center; /* Yatayda ortalar */ 
    color:white;
    margin-top:30px;  
    font-size:20px;
}


.legal-container {
    background-color: var(--bg-light);
    color: var(--text-light);
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 8px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.legal-container h1 {
    color: white;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-hover3);
    padding-bottom: 10px;
    background-color: transparent;
}




