:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #292929;  
  --bg-tertiary: #4b4949;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #ffea00;
  --error: #ff002f;
  --success: #8cd982; 
  --border: #3a3a3a;
  --shadow: rgba(0, 0, 0, 0.3);
  
  /* Grafik renkleri */
  --primary-color: #4CAF50;
  --secondary-color: #2196F3;
  --accent-color: #FFC107;
  --background-secondary: #333;
  --background-hover: #444;
  --border-color: #555;
  --text-color: var(--text-primary);
  --text-color-secondary: var(--text-secondary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
  background-image: radial-gradient(circle at top right, rgba(74, 158, 255, 0.05), transparent 400px);
}

.container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  letter-spacing: 1px;
}

h1 {
  font-size: 2rem;
  margin-top: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  text-align: center;
  width: 100%;
}

h1::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--accent);
  bottom: 0;
  left: 25%;
  border-radius: 2px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

#sonuclar {
  margin-top: 2.5rem;
  width: 100%;
  overflow-y: auto;
  position: relative;
  background-color: var(--bg-primary); 
  border-radius: 15px; 
  padding: 1rem; 
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-tertiary);
  overflow-x: hidden;
}

#sonuclar::-webkit-scrollbar {
  width: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
}

#sonuclar::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 4px;
}

#sonuclar::-webkit-scrollbar-track {
  background-color: var(--bg-tertiary);
  border-radius: 4px;
}

#sonuclar h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

#sonuclar h2::after {
  content: attr(data-zaman);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: normal;
}

.fon-liste {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.fon-item {
  background-color: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.fon-item:hover {
  box-shadow: 0 8px 16px var(--shadow);
  transform: translateY(-2px);
}

.fon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fon-baslik {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-grow: 1;
  margin-right: 1rem;
}

.fon-adi {
  font-size: 1.2rem;
  font-weight: bold;
  flex-grow: 1;
  width: 100%;
  color: var(--accent);
}

.fon-zaman-bilgi {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -5px;
  margin-bottom: 5px;
}

.fon-baslik select {
  width: 120px;
  font-size: 0.9rem;
  padding: 0.3rem;
}

.fon-detay {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  justify-items: center;
  align-items: center;
  padding: 20px;
}

.butonlar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: center;
  width: 100%;
  padding: 0 20%;
}

/* Format seçim stili */
.format-secim {
  display: flex;
  align-items: center;
}

/* Toggle buton stili */
.toggle-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 8px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: var(--bg-tertiary);
  border-radius: 20px;
  transition: all 0.3s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--text-primary);
  top: 2px;
  left: 2px;
  transition: all 0.3s;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .toggle-switch {
  background-color: var(--accent);
}

input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(16px);
}

.btn-add, .btn-hesapla, .btn-sil {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-add {
  min-width: 120px;
  max-width: 150px;
  height: 38px;
  font-size: 0.9rem;
  padding: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--accent);
  color: var(--bg-primary);
}

.btn-add:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  max-width: 180px;
  justify-content: center;
  align-items: center;
}

.input-group label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
}

input, select {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1);
}

input::placeholder {
  color: var(--text-secondary);
}

label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.btn-sil {
  background-color: transparent;
  color: var(--error);
  font-size: 0.9rem;
  width: auto;
  height: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  transition: all 0.3s ease;
  margin-left: auto;
  padding: 0 0.8rem;
  border-radius: 4px;
}

.btn-sil:hover {
  opacity: 1;
  background-color: rgba(255, 0, 47, 0.1);
}

.btn-hesapla {
  background-color: var(--accent);
  color: var(--bg-primary);
}

.sure-secim {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 180px;
}

.sure-secim label {
  text-align: center;
  font-size: 0.9rem;
}

.zaman-input-container {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--border);
}

.genel-zaman {
  width: 90px;
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: bold;
  background-color: transparent;
  color: var(--accent);
  text-align: center;
  border: none;
}

.zaman-birimi {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: bold;
  background-color: transparent;
  color: var(--accent);
  border: none;
}

.sonuclar {
  margin-top: 2rem;
  overflow-y: auto;
  position: relative;
}

.tablo-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
  max-height: none;
  overflow-y: visible;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 16px var(--shadow);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: center;
  background-color: var(--bg-secondary);
}

/* Tablonun th elementleri için stil */
th {
  background-color: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--accent);
}

th, td {
  padding: 12px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Sütunlar için genişlik ayarları */
th:first-child, td:first-child {
  width: 20%;
  min-width: 120px;
  text-align: left;
}

th:nth-child(2), td:nth-child(2) {
  width: 13%;
  min-width: 70px;
}

th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4),
th:nth-child(5), td:nth-child(5),
th:nth-child(6), td:nth-child(6) {
  width: 16%;
  min-width: 100px;
}

thead {
  background-color: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 2;
}

th, td {
  padding: 0.8rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  border-right: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th:last-child, td:last-child {
  border-right: none;
}

th {
  font-weight: bold;
  color: var(--accent);
  background-color: var(--bg-tertiary);
  position: sticky;
  top: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

th:first-child, td:first-child {
  width: 15%;
  text-align: center;
}

th:nth-child(2), td:nth-child(2),
th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4),
th:nth-child(5), td:nth-child(5),
th:nth-child(6), td:nth-child(6) {
  width: 15%;
}



#toplam-kazanc {
  color: var(--success);
}

/* Gelir ve Gider renkleri */
.gelir {
  color: var(--success);
  font-weight: normal;
  text-shadow: 0 0 10px rgba(140, 217, 130, 0.1);
}

.gider {
  color: var(--error);
  font-weight: normal;
  text-shadow: 0 0 10px rgba(255, 0, 47, 0.1);
}

/* Fon bağlantısı stili */
.fon-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: bold;
  font-size: 1rem;
}

.fon-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Toplam satırını daha belirgin yap */
.toplam-satir {
  border-top: 2px solid var(--border);
  background-color: var(--bg-tertiary);
}

.toplam-satir td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-weight: bold;
  font-size: 0.95rem;
}

.toplam-satir td:first-child {
  font-size: 0.95rem;
}

/* Genel toplam satırı stil */
.genel-toplam-satir {
  border-top: 2px solid var(--border);
  background-color: var(--bg-secondary);
}

.genel-toplam-satir td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-weight: bold;
  font-size: 0.95rem;
}

.genel-toplam-satir td:first-child {
  font-size: 0.95rem;
}

.genel-toplam-satir td[colspan] {
  text-align: right;
  padding-right: 15px;
  color: var(--text-primary);
}

.genel-toplam {
  color: var(--success);
  font-weight: bold;
}

/* Responsive tasarım */
@media (max-width: 992px) {
  .fon-detay {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    padding: 0 15px;
  }
  
  #sonuclar {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .fon-detay {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .fon-baslik {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .fon-baslik select {
    width: 100%;
  }
  
  .butonlar {
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .btn-add, .btn-hesapla {
    width: 100%;
  }
  
  .tablo-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0 -10px;
    width: calc(100% + 20px);
    border-radius: 0;
    max-width: 100%;
  }
  
  table {
    min-width: 700px;
    width: 100%;
    table-layout: fixed;
    display: block;
  }
  
  th, td {
    padding: 8px 2px;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Fon adı sütunu için sabit genişlik */
  th:first-child, td:first-child {
    width: 20%;
    min-width: 110px;
  }
  
  /* Para sütunu - mobilde daha dar yap */
  th:nth-child(2), td:nth-child(2) {
    width: 13%;
    min-width: 80px;
    padding-left: 1px;
    padding-right: 1px;
  }
  
  /* Diğer sütunlar için genişlikler */
  th:nth-child(3), td:nth-child(3),
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6) {
    width: 16.75%;
    min-width: 100px;
  }
  
  
  h1 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .fon-item {
    padding: 1rem;
  }
  
  th, td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .sure-secim {
    width: 100%;
    margin: 5px 0;
    order: -1;
  }
  
  .format-secim {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
    order: 1;
  }

  .zaman-input-container {
    max-width: 300px;
    margin: 0 auto;
  }

  .mobil-scroll-info {
    display: block;
  }
  
  body {
    padding: 10px;
  }
  
  #sonuclar {
    padding: 0.5rem;
  }

  h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  /* Mobil görünümde tablo düzeni */
  table {
    min-width: unset;
    width: 100%;
  }
  
  .mobil-hidden {
    display: none;
  }
  
  .mobil-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .mobil-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: -2px;
  }
  
  th, td {
    padding: 10px 5px;
  }
  
  /* Toplam satırı için mobil stil */
  .toplam-satir td {

    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  
  
  /* Genel toplam satırı mobil stil */
  .genel-toplam-satir td {

    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  
  
  .sure-bilgi {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .fon-detay {
    grid-template-columns: 1fr;
  }
  
  .fon-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .fon-baslik {
    width: 100%;
  }
  
  .btn-sil {
    align-self: flex-end;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  .input-group {
    max-width: 100%;
  }

  .fon-item {
    position: relative;
    padding-top: 40px;
  }

  table {
    min-width: 650px;
    display: block;
  }

  th, td {
    padding: 6px 1px;
    
  }

  .mobil-scroll-info {
    padding: 8px;
    margin: 0 -5px 10px;
    background-color: rgba(74, 158, 255, 0.15);
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
  }

  .butonlar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .format-secim {
    justify-content: center;
    margin-top: 10px;
    order: 1;
  }
  
  .btn-add {
    max-width: 100%;
  }

  /* Miktar sütunu daha dar */
  th:nth-child(2), td:nth-child(2) {
    min-width: 75px;
    padding-left: 0;
    padding-right: 0;
  }

  /* Toplam satırı için mobil stil */
  .toplam-satir td {
    
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  
  /* Genel toplam satırı mobil stil */
  .genel-toplam-satir td {
    
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  
  .genel-toplam {
    font-size: 0.7rem;
  }


  .tablo-container {
    max-width: 100%;
    margin: 0 -5px;
    width: calc(100% + 10px);
    padding: 0;
  }

  table {
    min-width: 600px;
  }

  th, td {
    padding: 5px 1px;
    font-size: 0.55rem;
    letter-spacing: -0.5px;
  }

  /* Miktar sütunu daha dar */
  th:nth-child(2), td:nth-child(2) {
    min-width: 65px;
    width: 12%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Fon adı sütunu için sabit genişlik */
  th:first-child, td:first-child {
    width: 17%;
    min-width: 95px;
  }

  /* Diğer sütunlar için genişlikler */
  th:nth-child(3), td:nth-child(3),
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6) {
    width: 16%;
    min-width: 90px;
  }

  .mobil-scroll-info {
    padding: 6px;
    margin: 0 -5px 8px;
    background-color: rgba(74, 158, 255, 0.15);
    border-radius: 5px;
    font-weight: normal;
    
  }
}

@media (max-width: 400px) {
  table {
    min-width: 550px;
    display: block;
  }
  
  th, td {
    padding: 4px 1px;
    
  }
  
  /* Miktar sütunu daha dar */
  th:nth-child(2), td:nth-child(2) {
    min-width: 60px;
    width: 11%;
  }
  
  /* Fon adı sütunu için sabit genişlik */
  th:first-child, td:first-child {
    width: 16%;
    min-width: 90px;
  }
  
  /* Diğer sütunlar için genişlikler */
  th:nth-child(3), td:nth-child(3),
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6) {
    width: 15.8%;
    min-width: 85px;
  }
  
  #sonuclar {
    padding: 0.5rem 0.3rem;
  }
  
  /* Toplam satırı için mobil stil */
  .toplam-satir td {
    
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  
  /* Genel toplam satırı mobil stil */
  .genel-toplam-satir td {
    
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

.para {
  white-space: nowrap;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.gelir, .gider {
  white-space: normal;
  display: inline-block;
  line-height: 1.3;
  font-size: 0.95rem;
  font-weight: 500;
}

.gelir br, .gider br {
  line-height: 1;
}

/* Tablo sütun başlıklarını küçült */
th {
  font-size: 0.9rem;
  padding: 0.8rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tablo hücrelerindeki padding ve marjinleri azalt */
td {
  padding: 0.8rem 0.4rem;
  font-size: 0.95rem;
}

.fon-bilgi {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 5px 0;
}

.sure-bilgi {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 5px;
  line-height: 1.3;
}

.btn-add span {
  font-size: 1.2rem;
  margin-right: 3px;
}

/* Başlık altında kayan bilgi metni */
.mobil-scroll-info {
  display: none;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-style: italic;
}

/* Tab stil tanımları */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
}

.tab-btn {
  padding: 8px 15px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  transition: all 0.3s;
  opacity: 0.7;
  border: 1px solid var(--border);
  border-bottom: none;
}

/* Ana sekme butonu (Fon Bazlı) */
.tab-btn[data-tab="fon-bazli"] {
  padding: 10px 20px;
  font-size: 1.1rem;
  background-color: var(--accent);
  color: var(--bg-primary);
  opacity: 1;
  position: relative;
  z-index: 2;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1);
}

/* Yan sekme butonları */
.tab-btn[data-tab="zaman-bazli"],
.tab-btn[data-tab="grafik"] {
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: var(--bg-secondary);
  position: relative;
  margin-top: 5px;
  border-radius: 6px 6px 0 0;
  font-weight: normal;
}

.tab-btn:hover {
  background-color: var(--bg-secondary);
  opacity: 0.9;
}

.tab-btn[data-tab="fon-bazli"]:hover {
  background-color: var(--accent);
  opacity: 0.9;
  transform: translateY(-2px);
}

.tab-btn[data-tab="zaman-bazli"]:hover,
.tab-btn[data-tab="grafik"]:hover {
  background-color: var(--bg-tertiary);
}

.tab-btn.active {
  background-color: var(--accent);
  color: var(--bg-primary);
  opacity: 1;
}

.tab-btn[data-tab="zaman-bazli"].active,
.tab-btn[data-tab="grafik"].active {
  background-color: var(--accent);
  color: var(--bg-primary);
  font-weight: bold;
}

.tab-content {
  display: none;
  margin-top: 15px;
  overflow: visible;
}

.tab-content.active {
  display: block;
}

/* Zaman bazlı tablo için özel stil - scroll yok */
#zaman-bazli-tab .tablo-container {
  max-height: none;
  overflow-y: visible;
}

/* Vergi ve kesinti satırları için daha açıklayıcı stil */
.vergi-satir, .kesinti-satir {
  background-color: var(--bg-secondary);
}

.vergi-satir td, .kesinti-satir td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-weight: bold;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.vergi-satir td[colspan], .kesinti-satir td[colspan] {
  text-align: right;
  padding-right: 15px;
  color: var(--text-primary);
}

#zaman-vergi, #zaman-kesinti {
  color: var(--error);
  text-align: center;
}

#zaman-vergi-sonrasi, #zaman-net-toplam {
  color: var(--success);
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}

/* Mobil için tab stilleri */
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
  }
  
  .tab-btn {
    white-space: nowrap;
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .tab-btn[data-tab="fon-bazli"] {
    padding: 8px 16px;
    font-size: 1rem;
  }
  
  .tab-btn[data-tab="zaman-bazli"],
  .tab-btn[data-tab="grafik"] {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
}

@media (max-width: 480px) {
  .tab-btn {
    width: 100%;
    margin-bottom: 5px;
  }
  
  #zaman-net-toplam {
    font-size: 0.7rem;
  }
}

.net-sonuc-satir {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.net-sonuc-satir td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-weight: bold;
  font-size: 0.95rem;
}

.net-sonuc-satir td[colspan] {
  text-align: right;
  padding-right: 15px;
  color: var(--text-primary);
}

#zaman-net-sonuc {
  color: var(--success);
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 768px) {
  .net-sonuc-satir td {
    
  }
  
  #zaman-net-sonuc {
    font-size: 0.85rem;
  }
}


@media (max-width: 400px) {
  .net-sonuc-satir td {
    font-size: 0.55rem;
  }
}

/* Grafik gösterme butonu */
.btn-grafik {
    padding: 5px 10px;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-grafik:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

#grafik-container {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 100%;
    min-height: 550px;
    position: relative;
}

#grafik-tab {
    display: none;
    overflow: visible;
    padding: 10px 0;
}

#grafik-tab.active {
    display: block;
}

#aylik-artis-grafik {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    #grafik-container {
        padding: 10px;
        min-height: 400px;
    }
    
    .btn-grafik {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: center;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 400px) {
  .net-sonuc-satir td {
    font-size: 0.55rem;
  }
}

.grafik-bilgi {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    #grafik-container {
        padding: 10px;
        min-height: 300px;
    }
    
    .btn-grafik {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: center;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .grafik-bilgi {
        font-size: 0.8rem;
    }
}

.sure-secim-butonlar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0 15px;
    align-items: center;
}

.veri-gosterim-butonlar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5px 0 25px;
    align-items: center;
}

.periyot-baslik, .veri-gosterim-baslik {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 5px;
}

.renk-kutu {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
}

.yatirim-renk {
    background-color: rgba(255, 206, 86, 0.7);
    border: 1px solid rgba(255, 206, 86, 1);
}

.artis-renk {
    background-color: rgba(75, 192, 192, 0.7);
    border: 1px solid rgba(75, 192, 192, 1);
}

.bakiye-renk {
    background-color: rgba(255, 159, 64, 0.7);
    border: 1px solid rgba(255, 159, 64, 1);
}

.sure-btn, .veri-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.veri-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.sure-btn:hover, .veri-btn:hover {
    background-color: var(--bg-tertiary);
}

.sure-btn.active, .veri-btn.active {
    background-color: var(--accent);
    color: var(--bg-primary);
    font-weight: bold;
    border-color: var(--accent);
}

.veri-btn.active .renk-kutu {
    border-color: var(--bg-primary);
}

.veri-btn:not(.active) {
    opacity: 0.7;
    background-color: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .sure-secim-butonlar, .veri-gosterim-butonlar {
        gap: 4px;
        margin: 8px 0 15px;
    }
    
    .periyot-baslik, .veri-gosterim-baslik {
        font-size: 0.8rem;
        margin-right: 3px;
    }
    
    .sure-btn, .veri-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .veri-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .renk-kutu {
        width: 10px;
        height: 10px;
        margin-right: 3px;
    }
    
    #grafik-container {
        padding: 10px;
        min-height: 400px;
    }
}

/* Grafik Sekmesi */
.grafik-wrapper {
    margin-top: 20px;
    width: 100%;
}

.grafik-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
}

.periyot-controls, .veri-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.periyot-controls h3, .veri-controls h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-grafik {
    padding: 8px 15px;
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-grafik:hover {
    background-color: var(--background-hover);
}

.btn-grafik.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.grafik-bilgi {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

#grafik-container {
    position: relative;
    height: 450px;
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px var(--shadow);
}

/* Veri Görünürlüğü Toggle Butonları */
.veri-toggle {
    margin-right: 20px;
    margin-bottom: 15px;
}

.veri-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.veri-label span {
    margin-right: 8px;
    font-size: 0.9rem;
}

.veri-cb {
    display: none;
}

.veri-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background-color: var(--background-secondary);
    transition: all 0.3s ease;
}

.veri-switch:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.veri-cb:checked + .yatirim-switch {
    background-color: rgba(255, 206, 86, 1);
}

.veri-cb:checked + .artis-switch {
    background-color: rgba(75, 192, 192, 1);
}

.veri-cb:checked + .bakiye-switch {
    background-color: rgba(255, 159, 64, 1);
}

.veri-cb:checked + .veri-switch:before {
    transform: translateX(20px);
}

/* Grafik Responsive Stilleri */
@media (min-width: 768px) {
    .grafik-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .veri-controls {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .grafik-controls {
        padding: 15px;
        gap: 20px;
    }
    
    #grafik-container {
        height: 350px;
        padding: 10px;
    }
    
    .grafik-bilgi {
        font-size: 0.8rem;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .btn-grafik {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
} 