.ayarlar-container {
  padding: 0.4rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  min-width: 250px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-size: 12px;

  // Sekmeler arası boşluk - minimum
  .ayarlar-sekme {
    margin-bottom: 0.3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;

    // Sekme Başlığı - Kompakt
    .sekme-baslik {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.35rem 0.4rem;
      background-color: rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      cursor: pointer;
      user-select: none;
      transition: background-color 0.2s ease;

      &:hover {
        background-color: rgba(255, 255, 255, 0.12);
      }

      i.icon {
        width: 0.8rem;
        height: 0.8rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        flex-shrink: 0;

        &.chevron-down::before {
          content: '▼';
        }

        &.chevron-right::before {
          content: '▶';
        }
      }

      span {
        font-weight: 500;
        color: #fff;
        flex: 1;
        font-size: 11px;
        line-height: 1;
      }
    }

    // Sekme İçeriği - Kompakt
    .sekme-icerik {
      padding: 0.35rem 0.4rem;
      animation: slideDown 0.15s ease;
      max-height: 400px;
      overflow-y: auto;

      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-5px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }
  }

  // AYAR satırı - Kompakt ve sıkı
  .ayar-satiri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    &:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    &.checkbox-satiri {
      justify-content: flex-start;
    }

    label {
      color: #fff;
      font-weight: 500;
      font-size: 11px;
      min-width: auto;
      flex-shrink: 0;
      white-space: nowrap;

      &.checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        cursor: pointer;
        font-weight: 400;

        input[type='checkbox'] {
          cursor: pointer;
          width: 14px;
          height: 14px;
          flex-shrink: 0;
        }

        span {
          font-size: 11px;
        }
      }
    }
  }

  // Değer grup (input + birim) - Kompakt
  .deger-grup {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;

    .ayar-input {
      width: 50px;
      padding: 0.25rem 0.3rem;
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      color: #fff;
      font-size: 11px;
      height: 22px;
      flex-shrink: 0;

      &:focus {
        outline: none;
        background-color: rgba(255, 255, 255, 0.15);
        border-color: #FFD700;
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
      }

      &::placeholder {
        color: rgba(255, 255, 255, 0.5);
      }

      /* Chrome, Safari, Edge, Opera */
      &::-webkit-outer-spin-button,
      &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

      /* Firefox */
      &[type='number'] {
        -moz-appearance: textfield;
      }
    }

    .ayar-birimi {
      color: rgba(255, 255, 255, 0.7);
      font-size: 10px;
      font-weight: 500;
      min-width: auto;
      flex-shrink: 0;
    }

    .ayar-degeri {
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      min-width: auto;
      text-align: right;
      font-size: 10px;
      flex-shrink: 0;
    }

    .slider {
      flex: 1;
      min-width: 40px;
      height: 4px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.2);
      outline: none;
      -webkit-appearance: none;
      padding: 0;

      &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #FFD700;
        cursor: pointer;
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
      }

      &::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #FFD700;
        cursor: pointer;
        border: none;
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
      }
    }
  }

  // Renk grubu - Kompakt
  .renk-grup {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;

    .renk-input {
      width: 32px;
      height: 22px;
      padding: 1px;
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      cursor: pointer;
      flex-shrink: 0;

      &:focus {
        outline: none;
        border-color: #FFD700;
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
      }
    }

    .renk-degeri {
      color: rgba(255, 255, 255, 0.8);
      font-family: monospace;
      font-size: 10px;
      min-width: auto;
      flex-shrink: 0;
    }
  }

  // Birim seçimi - Kompakt
  .birim-secim {
    flex: 1;
    min-width: 0;

    .birim-select {
      width: 100%;
      padding: 0.25rem 0.3rem;
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      color: #fff;
      font-size: 11px;
      cursor: pointer;
      height: 22px;

      option {
        background-color: #1a1a1a;
        color: #fff;
        font-size: 11px;
      }

      &:focus {
        outline: none;
        background-color: rgba(255, 255, 255, 0.15);
        border-color: #FFD700;
        box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
      }
    }
  }

  // Birim yardımcısı - Kompakt
  .birim-yardimci {
    background-color: rgba(255, 215, 0, 0.08);
    border-left: 2px solid #FFD700;
    padding: 0.3rem 0.4rem;
    border-radius: 2px;
    margin-top: 0.25rem;

    p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 10px;
      margin: 0.15rem 0;
      line-height: 1.2;

      strong {
        color: #FFD700;
        font-size: 10px;
      }
    }
  }

  // Butonlar - Kompakt
  .ayarlar-butonlari {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    button {
      flex: 1;
      padding: 0.3rem 0.4rem;
      background-color: rgba(255, 215, 0, 0.1);
      border: 1px solid rgba(255, 215, 0, 0.3);
      color: #FFD700;
      border-radius: 2px;
      cursor: pointer;
      font-weight: 500;
      font-size: 11px;
      transition: all 0.2s ease;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.2rem;

      &:hover {
        background-color: rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
      }

      &:active {
        transform: scale(0.95);
      }

      i.icon {
        font-size: 10px;
        flex-shrink: 0;

        &::before {
          font-size: 10px;
        }
      }
    }
  }
}

// Scroll bar stillemesi - İnce
.ayarlar-container::-webkit-scrollbar {
  width: 5px;
}

.ayarlar-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.ayarlar-container::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 2px;

  &:hover {
    background: rgba(255, 215, 0, 0.5);
  }
}

// İç scroll - sekme içinde ayarlar çoksa
.sekme-icerik::-webkit-scrollbar {
  width: 4px;
}

.sekme-icerik::-webkit-scrollbar-track {
  background: transparent;
}

.sekme-icerik::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.2);
  border-radius: 2px;

  &:hover {
    background: rgba(255, 215, 0, 0.4);
  }
}