/* Reset ve temel ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.5;
  min-height: 100vh;
  padding: 10px 20px;
}

/* Header */

.header {
    display: flex;
    justify-content: space-between; /* Sol ve sağ içerikler arası boşluk */
    align-items: center; /* Dikey hizalama */
    padding: 0 20px; /* Body ile aynı yatay boşluk */
    max-width: 1200px; /* Body genişliği ile aynı sınır */
    margin: 0 auto; /* Ortalamak için */
    height: 70px; /* Header yüksekliği */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* İnce alt çizgi */
}

/* Sol taraf: Logo + Başlık */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px; /* Logo ile başlık arası boşluk */
}

.header-left img {
    height: 40px; /* Logo boyutu */
    width: auto;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* Sağ taraf: Açıklama */
.header-right {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobil uyum */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px;
        gap: 5px;
    }

    .header-right {
        font-size: 0.85rem;
    }
}



/*header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}*/

.logo {
  font-size: 1.8rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* Main & Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #fff;
}

/* Table wrapper: yatay kaydırma */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255 255 255 / 0.1);
}

/* Tablolar */
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

/* Head */
thead tr {
  background-color: #333;
  color: #ccc;
}

thead th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #444;
  white-space: nowrap;
}

/* Body */
tbody tr {
  border-bottom: 1px solid #2e2e2e;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: #2a2a2a;
}

tbody td {
  padding: 10px 15px;
  white-space: nowrap;
}

/* Yüzdelik renkler */
.percentage-positive {
  color: #4caf50;
  font-weight: 700;
}

.percentage-negative {
  color: #f44336;
  font-weight: 700;
}

/* CMC Link stili */
.cmc-link {
  color: #90caf9;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cmc-link:hover {
  text-decoration: underline;
}

/* Ok işareti için */
.cmc-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Responsive: küçük ekranlar için */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .title {
    font-size: 1.3rem;
  }

  table {
    min-width: 700px;
  }
}

/* Table genişliğini max genişlik olarak sınırla ve kenar boşluğu ver */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Kenar boşlukları */
}

/* Tablo sığması için responsive ve yatay kaydırma */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255 255 255 / 0.1);
  padding-bottom: 10px;
}

/* Tablo genişliğini %100 yap, ancak min-width'i düşür */
table {
  min-width: 700px; /* Daha önce 900 idi, küçülttük */
  width: 100%;
}

/* Mobilde tablo scroll */
@media (max-width: 768px) {
  table {
    min-width: 600px;
  }
}

/* Kenar boşluklarını ayarlamak için tbody td padding küçültülebilir */
tbody td {
  padding: 8px 10px;
}

/* Header ve body için yatay padding */
thead th {
  padding: 10px 12px;
}


.tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
}

body {
  background-color: #121212;
  color: #f1f1f1;
}
.sidebar {
  background: #1e1e1e;
  color: #fff;
}
a {
  color: #4fc3f7;
}

.coin-detail span {
  font-size: 15px;
  color: #ccc;
}